diff options
author | John-Mark Bell <jmb@netsurf-browser.org> | 2014-01-17 18:41:23 +0000 |
---|---|---|
committer | John-Mark Bell <jmb@netsurf-browser.org> | 2014-01-17 18:45:05 +0000 |
commit | 4b69a07b7f8fb294c7d2833083fbd3735f323809 (patch) | |
tree | fb51faac893156ba64f89fbd05566f1ab46ff989 | |
parent | 6be96085a9b3aafd2704b8bedc2d32c7781094e3 (diff) | |
download | libnsfb-4b69a07b7f8fb294c7d2833083fbd3735f323809.tar.gz libnsfb-4b69a07b7f8fb294c7d2833083fbd3735f323809.tar.bz2 |
Allow building for Win32
-rw-r--r-- | src/plot/16bpp.c | 1 | ||||
-rw-r--r-- | src/plot/24bpp.c | 8 | ||||
-rw-r--r-- | src/plot/32bpp-xbgr8888.c | 8 | ||||
-rw-r--r-- | src/plot/32bpp-xrgb8888.c | 8 | ||||
-rw-r--r-- | src/plot/8bpp.c | 1 |
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> |