Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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.
  • Loading branch information...
commit 81db5a00e4232d8567f525fa2a2840fd120979ff 1 parent cb71b6b
@yangtse yangtse authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 setup_once.h
View
5 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 */
-
Please sign in to comment.
Something went wrong with that request. Please try again.