Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/include Do not define bool/true/false for C++.



details:   https://anonhg.NetBSD.org/src/rev/15db3421b3a2
branches:  trunk
changeset: 786317:15db3421b3a2
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri Apr 26 10:58:22 2013 +0000

description:
Do not define bool/true/false for C++.

diffstat:

 include/stdbool.h |  9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diffs (24 lines):

diff -r 63c173e72921 -r 15db3421b3a2 include/stdbool.h
--- a/include/stdbool.h Fri Apr 26 09:04:43 2013 +0000
+++ b/include/stdbool.h Fri Apr 26 10:58:22 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stdbool.h,v 1.3 2008/04/28 20:22:54 martin Exp $       */
+/*     $NetBSD: stdbool.h,v 1.4 2013/04/26 10:58:22 joerg Exp $        */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -37,13 +37,8 @@
 
 #define        true    1
 #define        false   0
-#else
-#define        bool    bool
 
-#define        true    true
-#define        false   false
+#define        __bool_true_false_are_defined   1
 #endif /* __cplusplus */
 
-#define        __bool_true_false_are_defined   1
-
 #endif /* _STDBOOL_H_ */



Home | Main Index | Thread Index | Old Index