22 lines
662 B
Plaintext
22 lines
662 B
Plaintext
$NetBSD: patch-aa,v 1.1 2012/12/08 22:43:10 adam Exp $
|
|
|
|
--- libopenjpeg/opj_malloc.h.orig 2012-09-13 07:58:39.000000000 +0000
|
|
+++ libopenjpeg/opj_malloc.h
|
|
@@ -80,16 +80,6 @@ Allocate memory aligned to a 16 byte bou
|
|
#define HAVE_MM_MALLOC
|
|
#endif
|
|
#endif
|
|
-#else /* Not _WIN32 */
|
|
- #if defined(__sun)
|
|
- #define HAVE_MEMALIGN
|
|
- #elif defined(__FreeBSD__)
|
|
- #define HAVE_POSIX_MEMALIGN
|
|
- /* Linux x86_64 and OSX always align allocations to 16 bytes */
|
|
- #elif !defined(__amd64__) && !defined(__APPLE__) && !defined(_AIX)
|
|
- #define HAVE_MEMALIGN
|
|
- #include <malloc.h>
|
|
- #endif
|
|
#endif
|
|
|
|
#define opj_aligned_malloc(size) malloc(size)
|