summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plot/16bpp.c1
-rw-r--r--src/plot/24bpp.c8
-rw-r--r--src/plot/32bpp-xbgr8888.c8
-rw-r--r--src/plot/32bpp-xrgb8888.c8
-rw-r--r--src/plot/8bpp.c1
5 files changed, 21 insertions, 5 deletions
diff --git a/src/plot/16bpp.c b/src/plot/16bpp.c
index 4f9134f..95fc199 100644
--- a/src/plot/16bpp.c
+++ b/src/plot/16bpp.c
@@ -8,7 +8,6 @@
*/
#include <stdbool.h>
-#include <endian.h>
#include <stdlib.h>
#include "libnsfb.h"
diff --git a/src/plot/24bpp.c b/src/plot/24bpp.c
index dc67f04..011765a 100644
--- a/src/plot/24bpp.c
+++ b/src/plot/24bpp.c
@@ -7,9 +7,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"
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"
diff --git a/src/plot/32bpp-xrgb8888.c b/src/plot/32bpp-xrgb8888.c
index 9b3d551..476f6b2 100644
--- a/src/plot/32bpp-xrgb8888.c
+++ b/src/plot/32bpp-xrgb8888.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"
diff --git a/src/plot/8bpp.c b/src/plot/8bpp.c
index 4fef119..6b8350d 100644
--- a/src/plot/8bpp.c
+++ b/src/plot/8bpp.c
@@ -8,7 +8,6 @@
*/
#include <stdbool.h>
-#include <endian.h>
#include <stdlib.h>
#include <string.h>