[1.5] Build fails on AIX
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Mon, 21 May 2012 10:34:35 +0000 (10:34 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Mon, 21 May 2012 10:34:35 +0000 (10:34 +0000)
Fixes issue 139

libopenjpeg/opj_malloc.h

index 0b1d4fc17fc774c99c71e3861f42980a957758c6..f989b87f3c2c0e5fa935f3dd509375c6b2dfa361 100644 (file)
@@ -84,7 +84,7 @@ Allocate memory aligned to a 16 byte boundry
        #if defined(__sun)\r
                #define HAVE_MEMALIGN\r
        /* Linux x86_64 and OSX always align allocations to 16 bytes */\r
-       #elif !defined(__amd64__) && !defined(__APPLE__)        \r
+       #elif !defined(__amd64__) && !defined(__APPLE__) && !defined(_AIX)\r
                #define HAVE_MEMALIGN\r
                #include <malloc.h>                     \r
        #endif\r