Module Name:    src
Committed By:   kamil
Date:           Thu Jul 30 21:31:15 UTC 2015

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

Log Message:
Deduplicate stdbool.h definitions

Reviewed by <christos>


To generate a diff of this commit:
cvs rdiff -u -r1.92 -r1.93 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.92 src/sys/sys/types.h:1.93
--- src/sys/sys/types.h:1.92	Wed Jul 29 00:10:25 2015
+++ src/sys/sys/types.h	Thu Jul 30 21:31:15 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: types.h,v 1.92 2015/07/29 00:10:25 christos Exp $	*/
+/*	$NetBSD: types.h,v 1.93 2015/07/30 21:31:15 kamil Exp $	*/
 
 /*-
  * Copyright (c) 1982, 1986, 1991, 1993, 1994
@@ -204,14 +204,7 @@ typedef	int		psetid_t;
  * Boolean type definitions for the kernel environment.  User-space
  * boolean definitions are found in <stdbool.h>.
  */
-#ifndef __bool_true_false_are_defined
-#ifndef __cplusplus
-#define bool	_Bool
-#define true	1
-#define false	0
-#endif
-#define __bool_true_false_are_defined 1
-#endif
+#include <sys/stdbool.h>
 
 /*
  * Deprecated Mach-style boolean_t type.  Should not be used by new code.

Reply via email to