aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-04-14 15:41:38 +0200
committerYang Tse <yangsita@gmail.com>2012-04-14 15:41:38 +0200
commit7d4ed0b10e66f5a4bf8d215be50acfa81f02a3dd (patch)
tree5b0661fd16f230df7283d787622e8708435f0535
parent48d13b44c660cdefaf1a921c974f43ee4df346a2 (diff)
setup_once.h: tighten requirements for stdbool.h header inclusion
Include stdbool.h only when it is available and configure is capable of detecting a proper 'bool' data type when the header is included. Compilation fix for old or unpatched versions of XL C compiler. Report: http://curl.haxx.se/mail/archive-2012-04/0022.html
-rw-r--r--lib/setup_once.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/setup_once.h b/lib/setup_once.h
index 4137f374c..eb14e5886 100644
--- a/lib/setup_once.h
+++ b/lib/setup_once.h
@@ -79,7 +79,7 @@
#include <fcntl.h>
#endif
-#ifdef HAVE_STDBOOL_H
+#if defined(HAVE_STDBOOL_H) && defined(HAVE_BOOL_T)
#include <stdbool.h>
#endif