Module Name:    src
Committed By:   matt
Date:           Sat Feb  2 14:00:37 UTC 2013

Modified Files:
        src/sys/sys: types.h

Log Message:
Don't define bool/true/false in the kernel if __cplusplus is defined.


To generate a diff of this commit:
cvs rdiff -u -r1.89 -r1.90 src/sys/sys/types.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/types.h
diff -u src/sys/sys/types.h:1.89 src/sys/sys/types.h:1.90
--- src/sys/sys/types.h:1.89	Sat Mar 17 21:30:29 2012
+++ src/sys/sys/types.h	Sat Feb  2 14:00:37 2013
@@ -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 @@ typedef	int		psetid_t;
  * 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.

Reply via email to