Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Don't define bool/true/false in the kernel if __cplu...
details: https://anonhg.NetBSD.org/src/rev/648c8a755037
branches: trunk
changeset: 784570:648c8a755037
user: matt <matt%NetBSD.org@localhost>
date: Sat Feb 02 14:00:37 2013 +0000
description:
Don't define bool/true/false in the kernel if __cplusplus is defined.
diffstat:
sys/sys/types.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r f9bce82d72de -r 648c8a755037 sys/sys/types.h
--- a/sys/sys/types.h Sat Feb 02 07:00:40 2013 +0000
+++ b/sys/sys/types.h Sat Feb 02 14:00:37 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.89 2012/03/17 21:30:29 christos Exp $ */
+/* $NetBSD: types.h,v 1.90 2013/02/02 14:00:37 matt Exp $ */
/*-
* Copyright (c) 1982, 1986, 1991, 1993, 1994
@@ -204,9 +204,11 @@
* Boolean type definitions for the kernel environment. User-space
* boolean definitions are found in <stdbool.h>.
*/
+#ifndef __cplusplus
#define bool _Bool
#define true 1
#define false 0
+#endif
/*
* Deprecated Mach-style boolean_t type. Should not be used by new code.
Home |
Main Index |
Thread Index |
Old Index