[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Cvs-cvs] ccvs/windows-NT stdbool.h
From: |
Mark D. Baushke |
Subject: |
[Cvs-cvs] ccvs/windows-NT stdbool.h |
Date: |
Wed, 25 Jan 2006 12:55:16 +0000 |
CVSROOT: /cvsroot/cvs
Module name: ccvs
Branch:
Changes by: Mark D. Baushke <address@hidden> 06/01/25 12:55:16
Modified files:
windows-NT : stdbool.h
Log message:
* stdbool.h: Update from GNULIB.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/cvs/ccvs/windows-NT/stdbool.h.diff?tr1=1.3&tr2=1.4&r1=text&r2=text
Patches:
Index: ccvs/windows-NT/stdbool.h
diff -u ccvs/windows-NT/stdbool.h:1.3 ccvs/windows-NT/stdbool.h:1.4
--- ccvs/windows-NT/stdbool.h:1.3 Mon May 23 17:47:16 2005
+++ ccvs/windows-NT/stdbool.h Wed Jan 25 12:55:16 2006
@@ -5,7 +5,7 @@
*
* Edit ../lib/stdbool_.h instead.
*/
-/* Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
+/* Copyright (C) 2001, 2002, 2003, 2006 Free Software Foundation, Inc.
Written by Bruno Haible <address@hidden>, 2001.
This program is free software; you can redistribute it and/or modify
@@ -77,8 +77,26 @@
(see ISO C 99 6.7.2.2.(4)); however, '_Bool' must promote to 'int'
(see ISO C 99 6.3.1.1.(2)). So we add a negative value to the
enum; this ensures that '_Bool' promotes to 'int'. */
-#if !(defined __cplusplus || defined __BEOS__)
+#if defined __cplusplus || defined __BEOS__
+ /* A compiler known to have 'bool'. */
+ /* If the compiler already has both 'bool' and '_Bool', we can assume they
+ are the same types. */
# if !0
+typedef bool _Bool;
+# endif
+#else
+# if 0
+# if defined __HP_cc || defined __xlc__
+ /* Some HP-UX cc and AIX IBM C compiler versions have compiler bugs when
+ the built-in _Bool type is used. See
+ http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
+ http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
+ http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
+ Override it. */
+# define _Bool signed char
+enum { false = 0, true = 1 };
+# endif
+# else
# if defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1)
/* Avoid stupid "warning: _Bool is a keyword in ISO C99". */
# define _Bool signed char
@@ -87,8 +105,6 @@
typedef enum { _Bool_must_promote_to_int = -1, false = 0, true = 1 } _Bool;
# endif
# endif
-#else
-typedef bool _Bool;
#endif
#define bool _Bool
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Cvs-cvs] ccvs/windows-NT stdbool.h,
Mark D. Baushke <=