Bladeren bron

COMP: Only include malloc.h on QNX.

Brad King 21 jaren geleden
bovenliggende
commit
6b43d78dae
1 gewijzigde bestanden met toevoegingen van 3 en 1 verwijderingen
  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>