From 7d4ed0b10e66f5a4bf8d215be50acfa81f02a3dd Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sat, 14 Apr 2012 15:41:38 +0200 Subject: 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 --- lib/setup_once.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3