Welcome to mirror list, hosted at ThFree Co, Russian Federation.

osx.patch « patches « libopenjpeg « extern - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c518978eed677e95c1687e2965674d50987f7745 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 */