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
This commit is contained in:
Yang Tse 2012-04-14 15:41:38 +02:00
parent 48d13b44c6
commit 7d4ed0b10e
1 changed files with 1 additions and 1 deletions

View File

@ -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