From: Yang Tse Date: Sat, 14 Apr 2012 13:41:38 +0000 (+0200) Subject: setup_once.h: tighten requirements for stdbool.h header inclusion X-Git-Tag: curl-7_26_0~54 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7d4ed0b10e66f5a4bf8d215be50acfa81f02a3dd;p=curl 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 --- 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 #endif -#ifdef HAVE_STDBOOL_H +#if defined(HAVE_STDBOOL_H) && defined(HAVE_BOOL_T) #include #endif