summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-10-06 16:40:36 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-10-06 16:40:36 +0000
commitcb797070ced949a7987a0e02cd93805967ac8c8d (patch)
tree3052b2d5586447fbe145401d3d69b6379c2ce276
parent38ffebe4ac6e5e497f08b9d722aa28c8d7e6a560 (diff)
downloadcoreutils-cb797070ced949a7987a0e02cd93805967ac8c8d.tar.xz
(AC_HEADER_STDBOOL): Check that bool
promotes to int, not unsigned int, to catch the AIX 5.3 compiler bug.
-rw-r--r--m4/stdbool.m45
1 files changed, 3 insertions, 2 deletions
diff --git a/m4/stdbool.m4 b/m4/stdbool.m4
index 3f6b4bfcb..945a03653 100644
--- a/m4/stdbool.m4
+++ b/m4/stdbool.m4
@@ -1,6 +1,6 @@
# Check for stdbool.h that conforms to C99.
-dnl Copyright (C) 2002-2004 Free Software Foundation, Inc.
+dnl Copyright (C) 2002-2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
@@ -70,10 +70,11 @@ AC_DEFUN([AC_HEADER_STDBOOL],
enum { j = false, k = true, l = false * true, m = true * 256 };
_Bool n[m];
char o[sizeof n == m * sizeof n[0] ? 1 : -1];
+ char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
],
[
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k + !l
- + !m + !n + !o);
+ + !m + !n + !o + !p);
],
[ac_cv_header_stdbool_h=yes],
[ac_cv_header_stdbool_h=no])])