pkgsrc/graphics/openjpeg/patches/patch-aa
adam 11ede8269d Changes 2.0.0:
New Features:
    * streaming capabilities
    * merge JP3D

API modifications:
    * Use a 64bits capable API

Misc:
    * removed autotools build system
    * folders hierarchies reorganisation
    * Huge amount of bug fixes. See CHANGES for details.
2012-12-06 17:09:18 +00:00

21 lines
654 B
Text

$NetBSD: patch-aa,v 1.3 2012/12/06 17:09:18 adam Exp $
--- src/lib/openjp2/opj_malloc.h.orig 2012-11-19 14:26:08.000000000 +0000
+++ src/lib/openjp2/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)