aboutsummaryrefslogtreecommitdiff
path: root/include/stdbool.h
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2002-06-19 06:04:37 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2002-06-19 06:04:37 +0000
commit08d68d18e0c32c0ec23afac4e139932b3f5e0795 (patch)
treef9fc0359f5732fcf1d967fc886d1654320ef19b1 /include/stdbool.h
parent00e1854a1fdb7ecee8c6eb72a0ebab049138f59c (diff)
downloadsrc-08d68d18e0c32c0ec23afac4e139932b3f5e0795.tar.gz
src-08d68d18e0c32c0ec23afac4e139932b3f5e0795.zip
Guard definitions for use with C++ code.
Submitted by: Ed Hall <edhall@yahoo-inc.com>
Notes
Notes: svn path=/head/; revision=98415
Diffstat (limited to 'include/stdbool.h')
-rw-r--r--include/stdbool.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/stdbool.h b/include/stdbool.h
index 1e6bd6578c56..f31e63e409f9 100644
--- a/include/stdbool.h
+++ b/include/stdbool.h
@@ -31,6 +31,8 @@
#define __bool_true_false_are_defined 1
+#ifndef __cplusplus
+
#define false 0
#define true 1
@@ -39,4 +41,6 @@
typedef int _Bool;
#endif
+#endif /* !__cplusplus */
+
#endif /* !_STDBOOL_H_ */