summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-09-04 14:21:48 (GMT)
committer Vincent Sanders <vince@kyllikki.org>2016-09-04 14:21:48 (GMT)
commit9fc2238945747b27858a34c26c7c64cf895df7e8 (patch)
treeb9eb1bb17a49dae2842ea4d860b4b465bb442efd
parent6742ef25b910a3a69cce5c9bfd8b9a64b8e7f121 (diff)
downloadlibnsfb-9fc2238945747b27858a34c26c7c64cf895df7e8.tar.gz
libnsfb-9fc2238945747b27858a34c26c7c64cf895df7e8.tar.bz2
use the darwin specific macros for endian checking
This is necessary to avoid issues around having the correct macros defined in the darwin environment.
-rw-r--r--src/plot.h2
1 files changed, 1 insertions, 1 deletions
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 <machine/endian.h>
- #if BYTE_ORDER == BIG_ENDIAN
+ #if __DARWIN_BYTE_ORDER == __DARWIN_BIG_ENDIAN
#define NSFB_BE_BYTE_ORDER
#endif
#else