summaryrefslogtreecommitdiff
path: root/src/plot.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plot.h')
-rw-r--r--src/plot.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/plot.h b/src/plot.h
index 6e67ca6..65ef264 100644
--- a/src/plot.h
+++ b/src/plot.h
@@ -29,7 +29,13 @@
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define NSFB_BE_BYTE_ORDER
#endif
-#else /* defined(_WIN32) */
+#elif defined(OS_MACOSX)
+/* mac os x has the include somewhere different */
+ #include <machine/endian.h>
+ #if BYTE_ORDER == BIG_ENDIAN
+ #define NSFB_BE_BYTE_ORDER
+ #endif
+#else
#include <endian.h>
#if defined(__BYTE_ORDER__)
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__