projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48d13b4
)
setup_once.h: tighten requirements for stdbool.h header inclusion
author
Yang Tse
<yangsita@gmail.com>
Sat, 14 Apr 2012 13:41:38 +0000
(15:41 +0200)
committer
Yang Tse
<yangsita@gmail.com>
Sat, 14 Apr 2012 13:41:38 +0000
(15:41 +0200)
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
lib/setup_once.h
patch
|
blob
|
history
diff --git
a/lib/setup_once.h
b/lib/setup_once.h
index
4137f37
..
eb14e58
100644
(file)
--- a/
lib/setup_once.h
+++ b/
lib/setup_once.h
@@
-79,7
+79,7
@@
#include <fcntl.h>
#endif
-#if
def HAVE_STDBOOL_H
+#if
defined(HAVE_STDBOOL_H) && defined(HAVE_BOOL_T)
#include <stdbool.h>
#endif