瀏覽代碼

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

rdb 16 年之前
父節點
當前提交
ef4a9038df
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      pandatool/src/mayaprogs/mayaWrapper.cxx

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

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