summaryrefslogtreecommitdiff
path: root/setup_once.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-04-17 13:18:33 +0200
committerYang Tse <yangsita@gmail.com>2012-04-17 13:30:01 +0200
commit81db5a00e4232d8567f525fa2a2840fd120979ff (patch)
tree8a1d0ed2bb2a3d096fb103f734497338bda6a5e8 /setup_once.h
parentcb71b6bd5ac5e44198e14c81c4c0178331c1f7ec (diff)
downloadc-ares-81db5a00e4232d8567f525fa2a2840fd120979ff.tar.gz
c-ares-81db5a00e4232d8567f525fa2a2840fd120979ff.tar.bz2
c-ares-81db5a00e4232d8567f525fa2a2840fd120979ff.zip
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.
Diffstat (limited to 'setup_once.h')
-rw-r--r--setup_once.h5
1 files 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 <fcntl.h>
#endif
-#ifdef HAVE_STDBOOL_H
+#if defined(HAVE_STDBOOL_H) && defined(HAVE_BOOL_T)
#include <stdbool.h>
#endif
@@ -510,4 +510,3 @@ typedef int sig_atomic_t;
#endif /* __SETUP_ONCE_H */
-