changeset 18327:c2b547926f34

stdbool: Restore __bool_true_false_are_defined check * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): __bool_true_false_are_defined is still defined, even with C++11.
author Paul Eggert <eggert@cs.ucla.edu>
date Tue, 31 May 2016 09:03:15 -0700
parents 531eb5d80adc
children 8ac8462b0c27
files ChangeLog m4/stdbool.m4
diffstat 2 files changed, 11 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon May 30 22:54:32 2016 +0200
+++ b/ChangeLog	Tue May 31 09:03:15 2016 -0700
@@ -1,3 +1,9 @@
+2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
+
+	stdbool: Restore __bool_true_false_are_defined check
+	* m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
+	__bool_true_false_are_defined is still defined, even with C++11.
+
 2016-05-31  David Seifert <soap@gentoo.org>  (tiny change)
 
 	stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
--- a/m4/stdbool.m4	Mon May 30 22:54:32 2016 +0200
+++ b/m4/stdbool.m4	Tue May 31 09:03:15 2016 -0700
@@ -44,7 +44,7 @@
            [[
              #include <stdbool.h>
 
-             #if __cplusplus < 201103L
+             #if __cplusplus < 201103
               #ifndef bool
                "error: bool is not defined"
               #endif
@@ -60,9 +60,10 @@
               #if true != 1
                "error: true is not 1"
               #endif
-              #ifndef __bool_true_false_are_defined
-               "error: __bool_true_false_are_defined is not defined"
-              #endif
+             #endif
+
+             #ifndef __bool_true_false_are_defined
+              "error: __bool_true_false_are_defined is not defined"
              #endif
 
              struct s { _Bool s: 1; _Bool t; } s;