summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2011-01-16 16:23:12 +0000
committerAntonin Descampe <antonin@gmail.com>2011-01-16 16:23:12 +0000
commit420750f5cadc09c03b63ea9643752d9c30f0338a (patch)
tree93b4c91fb5753173d1a70b0ebb05c85adc5a5f6a
parent51f7cc6874d9d61e1f6c23936a6b5a6f080d78d3 (diff)
convert.c: inclusion of endian.h has to be different on APPLE platforms
-rw-r--r--CHANGES3
-rw-r--r--codec/convert.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index aa83d2a1..e080825a 100644
--- a/CHANGES
+++ b/CHANGES
@@ -5,6 +5,9 @@ What's New for OpenJPEG
! : changed
+ : added
+January 16, 2001
+* [antonin] convert.c: inclusion of endian.h has to be different on APPLE platforms
+
January 13, 2001
+ [rdieter] add pkg-config support to cmake
! [rdieter] adjust autotools pkg-config support to match
diff --git a/codec/convert.c b/codec/convert.c
index e336f98f..088a5c58 100644
--- a/codec/convert.c
+++ b/codec/convert.c
@@ -37,6 +37,8 @@
#ifdef _WIN32
#define BYTE_ORDER LITTLE_ENDIAN
+#elif __APPLE__
+#include <machine/endian.h>
#else
#include <endian.h>
#endif