فهرست منبع

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>