From 9fc2238945747b27858a34c26c7c64cf895df7e8 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 4 Sep 2016 15:21:48 +0100 Subject: use the darwin specific macros for endian checking This is necessary to avoid issues around having the correct macros defined in the darwin environment. --- src/plot.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/plot.h b/src/plot.h index 2beca42..2fd2ebf 100644 --- a/src/plot.h +++ b/src/plot.h @@ -32,7 +32,7 @@ #elif defined(__APPLE__) /* mac os x has the include somewhere different */ #include - #if BYTE_ORDER == BIG_ENDIAN + #if __DARWIN_BYTE_ORDER == __DARWIN_BIG_ENDIAN #define NSFB_BE_BYTE_ORDER #endif #else -- cgit v1.2.3