fix from mikes for building on apple with gcc 4.2.1
authorCampbell Barton <ideasman42@gmail.com>
Wed, 16 Feb 2011 05:03:33 +0000 (05:03 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 16 Feb 2011 05:03:33 +0000 (05:03 +0000)
intern/mikktspace/mikktspace.c

index 125725a44ff542c5cd26b7afd5960a2feac5d41c..797064a21f60dcf1a388b9320862b3c572021e15 100644 (file)
 #include <math.h>
 #include <string.h>
 #include <float.h>
-#include <malloc.h>
+
+#ifdef __APPLE__
+#include <stdlib.h>  /* OSX gets its malloc stuff through here */
+#else
+#include <malloc.h> 
+#endif
+
 #include "mikktspace.h"
 
 #define TFALSE         0