diff options
Diffstat (limited to 'src/plot/32bpp-xrgb8888.c')
-rw-r--r-- | src/plot/32bpp-xrgb8888.c | 8 |
1 files changed, 7 insertions, 1 deletions
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" |