blob: 248d4fd67bffea6f7da886bd2bacf962bbccabe5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
$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)
|