瀏覽代碼

COMP: Only include malloc.h on QNX.

Brad King 21 年之前
父節點
當前提交
6b43d78dae
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Source/kwsys/SystemTools.cxx

+ 3 - 1
Source/kwsys/SystemTools.cxx

@@ -25,7 +25,9 @@
 
 #include <ctype.h>
 #include <errno.h>
-#include <malloc.h> /* for malloc/free on some systems */
+#ifdef QNX /* TODO: Find real preprocessor for QNX. */
+# include <malloc.h> /* for malloc/free on some systems */
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>