summaryrefslogtreecommitdiff
path: root/src/plot/32bpp-xbgr8888.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plot/32bpp-xbgr8888.c')
-rw-r--r--src/plot/32bpp-xbgr8888.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/plot/32bpp-xbgr8888.c b/src/plot/32bpp-xbgr8888.c
index 4c19688..89131b4 100644
--- a/src/plot/32bpp-xbgr8888.c
+++ b/src/plot/32bpp-xbgr8888.c
@@ -8,9 +8,15 @@
*/
#include <stdbool.h>
-#include <endian.h>
#include <stdlib.h>
+#ifndef _WIN32
+#include <endian.h>
+#else
+#define __BYTE_ORDER __BYTE_ORDER__
+#define __BIG_ENDIAN __ORDER_BIG_ENDIAN__
+#endif
+
#include "libnsfb.h"
#include "libnsfb_plot.h"
#include "libnsfb_plot_util.h"