OSDN Git Service

It was included after stdlib.h because it became a compilation error when dmalloc...
[ccunit/ccunit.git] / src / ccunit / CCUnitConfig.h
index aefda9e..a900a3d 100644 (file)
 
 #include <ccunit/config.h>
 
-#if WITH_DMALLOC
-#  include <dmalloc.h>
-#endif
-
-#if STDC_HEADERS
+#if CCUNIT_STDC_HEADERS
 #include <stdlib.h>
 #include <string.h>
 #endif
 
-#if HAVE_STDBOOL_H
+#if CCUNIT_WITH_DMALLOC
+#  include <dmalloc.h>
+#endif
+
+#if CCUNIT_HAVE_STDBOOL_H
 #include <stdbool.h>
 #elif defined (__cplusplus)
+#elif CCUNIT_HAVE__BOOL
+#define bool _Bool                             /**< boolean */
+#define true ((bool)1)                         /**< true */
+#define false ((bool)0)                                /**< false */
 #elif !defined (bool)
 #define bool int                               /**< boolean */
 #define true (1)                               /**< true */