forked from bartvdbraak/blender
== redcode ==
This makes it work for Mac OS X. Thanks to Jean-Luc Peuriere for the patch.
This commit is contained in:
parent
192037960d
commit
f72d450ae9
6
extern/libopenjpeg/opj_malloc.h
vendored
6
extern/libopenjpeg/opj_malloc.h
vendored
@ -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 */
|
||||
|
17
extern/libopenjpeg/patches/osx.patch
vendored
Normal file
17
extern/libopenjpeg/patches/osx.patch
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
Index: opj_malloc.h
|
||||
===================================================================
|
||||
--- opj_malloc.h (revision 15089)
|
||||
+++ opj_malloc.h (working copy)
|
||||
@@ -76,8 +76,10 @@
|
||||
#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 */
|
Loading…
Reference in New Issue
Block a user