Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Deduplicate stdbool.h definitions
details: https://anonhg.NetBSD.org/src/rev/d1759bf87683
branches: trunk
changeset: 339617:d1759bf87683
user: kamil <kamil%NetBSD.org@localhost>
date: Thu Jul 30 21:31:15 2015 +0000
description:
Deduplicate stdbool.h definitions
Reviewed by <christos>
diffstat:
sys/sys/types.h | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
diffs (25 lines):
diff -r 007ea57673fe -r d1759bf87683 sys/sys/types.h
--- a/sys/sys/types.h Thu Jul 30 15:29:52 2015 +0000
+++ b/sys/sys/types.h Thu Jul 30 21:31:15 2015 +0000
@@ -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 @@
* 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.
Home |
Main Index |
Thread Index |
Old Index