]> Savannah Git Hosting - gnulib.git/commitdiff
stdbool: Restore __bool_true_false_are_defined check
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 31 May 2016 16:03:15 +0000 (09:03 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 31 May 2016 16:03:38 +0000 (09:03 -0700)
* m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
__bool_true_false_are_defined is still defined, even with C++11.

ChangeLog
m4/stdbool.m4

index 02a7c8665279bcaec13cb97b8649629608551192..a6df98ad48d20945a31d5b3d899ded7e39c260a0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 0863847c59fd100640b9fdd681100b9de99aaca7..a556153181760a24d9810a798637e7424fcf12e7 100644 (file)
@@ -44,7 +44,7 @@ AC_DEFUN([AC_CHECK_HEADER_STDBOOL],
            [[
              #include <stdbool.h>
 
-             #if __cplusplus < 201103L
+             #if __cplusplus < 201103
               #ifndef bool
                "error: bool is not defined"
               #endif
@@ -60,9 +60,10 @@ AC_DEFUN([AC_CHECK_HEADER_STDBOOL],
               #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;