From bce2c233988e86ad034f6e0c8b96385db0d47a2e Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 4 Sep 2016 15:12:40 +0100 Subject: cope with mac os X having the endian header somewhere else --- src/plot.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 + #if BYTE_ORDER == BIG_ENDIAN + #define NSFB_BE_BYTE_ORDER + #endif +#else #include #if defined(__BYTE_ORDER__) #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ -- cgit v1.2.3