diff options
| -rw-r--r-- | ChangeLog | 3 | ||||
| -rw-r--r-- | libopenjpeg/opj_malloc.h | 6 |
2 files changed, 7 insertions, 2 deletions
@@ -5,6 +5,9 @@ What's New for OpenJPEG ! : changed + : added +January 16, 2008 +* [antonin] fixed opj_malloc.h for macosx (bugfix provided by janpeder, thanks) + January 11, 2008 + [FOD] Added missing files to JavaOpenJPEG project (files from Patrick Piscaglia) diff --git a/libopenjpeg/opj_malloc.h b/libopenjpeg/opj_malloc.h index 57a51c62..1f117b6a 100644 --- a/libopenjpeg/opj_malloc.h +++ b/libopenjpeg/opj_malloc.h @@ -76,8 +76,10 @@ Allocate memory aligned to a 16 byte boundry #if defined(__sun)
#define HAVE_MEMALIGN
#elif defined(__GNUC__)
- #define HAVE_MEMALIGN
- #include <malloc.h>
+ #ifndef __APPLE__
+ #define HAVE_MEMALIGN
+ #include <malloc.h>
+ #endif
/* Linux x86_64 and OSX always align allocations to 16 bytes */
#elif !defined(__amd64__) && !defined(__APPLE__)
/* FIXME: Yes, this is a big assumption */
|
