瀏覽代碼

COMP: Using proper __QNX__ preprocessor test.

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

+ 2 - 2
Source/kwsys/SystemTools.cxx

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