From 81db5a00e4232d8567f525fa2a2840fd120979ff Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Tue, 17 Apr 2012 13:18:33 +0200 Subject: [PATCH] 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. --- setup_once.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/setup_once.h b/setup_once.h index 48cb9b2..fc630ef 100644 --- a/setup_once.h +++ b/setup_once.h @@ -2,7 +2,7 @@ #define __SETUP_ONCE_H -/* Copyright (C) 2004 - 2011 by Daniel Stenberg et al +/* Copyright (C) 2004 - 2012 by Daniel Stenberg et al * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose and without fee is hereby granted, provided @@ -72,7 +72,7 @@ #include #endif -#ifdef HAVE_STDBOOL_H +#if defined(HAVE_STDBOOL_H) && defined(HAVE_BOOL_T) #include #endif @@ -510,4 +510,3 @@ typedef int sig_atomic_t; #endif /* __SETUP_ONCE_H */ - -- 2.7.4