summaryrefslogtreecommitdiff
path: root/tests/libtest/test.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-02-22 02:51:54 +0000
committerYang Tse <yangsita@gmail.com>2007-02-22 02:51:54 +0000
commit69565afab0be081211df57a245a222cbd3e43ed3 (patch)
tree834ab5e7265abad18a542da69d7d65fba831cee3 /tests/libtest/test.h
parent39aac6352159b4ba92463ec95b9e3df49a5b6693 (diff)
downloadcurl-69565afab0be081211df57a245a222cbd3e43ed3.tar.gz
Check for stdbool.h at configuration stage, and include it if available.
Check for lowercase 'bool' type at configuration stage. If not available provide a suitable replacement with a type definition of 'unsigned char' in setup_once.h Move definitions of TRUE and FALSE to setup_once.h
Diffstat (limited to 'tests/libtest/test.h')
-rw-r--r--tests/libtest/test.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/tests/libtest/test.h b/tests/libtest/test.h
index 5e298abbd..c7064f82e 100644
--- a/tests/libtest/test.h
+++ b/tests/libtest/test.h
@@ -12,6 +12,7 @@
version, but that might include "config.h" from the build dir so we need
both of them in the include path), so that we get good in-depth knowledge
about the system we're building this on */
+
#include "setup.h"
#include <curl.h>
@@ -32,14 +33,6 @@
#include <unistd.h>
#endif
-#ifndef FALSE
-#define FALSE 0
-#endif
-
-#ifndef TRUE
-#define TRUE 1
-#endif
-
#define TEST_ERR_MAJOR_BAD 100
#define TEST_ERR_RUNS_FOREVER 99