Permalink
Browse files

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
  • Loading branch information...
1 parent 48d13b4 commit 7d4ed0b10e66f5a4bf8d215be50acfa81f02a3dd @yangtse yangtse committed Apr 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/setup_once.h
View
@@ -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

0 comments on commit 7d4ed0b

Please sign in to comment.