Browse Source

OSX has sys/malloc.h, not malloc.h

rdb 16 years ago
parent
commit
ef4a9038df
1 changed files with 5 additions and 1 deletions
  1. 5 1
      pandatool/src/mayaprogs/mayaWrapper.cxx

+ 5 - 1
pandatool/src/mayaprogs/mayaWrapper.cxx

@@ -33,8 +33,12 @@
   #include <unistd.h>
   #include <unistd.h>
   #define _putenv putenv
   #define _putenv putenv
 #endif
 #endif
+#ifdef __APPLE__
+  #include <sys/malloc.h>
+#else
+  #include <malloc.h>
+#endif
 #include <stdlib.h>
 #include <stdlib.h>
-#include <malloc.h>
 #include <stdio.h>
 #include <stdio.h>
 #include <signal.h>
 #include <signal.h>
 #define PATH_MAX 1024
 #define PATH_MAX 1024