summaryrefslogtreecommitdiffstats
path: root/include/stdbool.h
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-06-19 06:04:37 +0000
committerobrien <obrien@FreeBSD.org>2002-06-19 06:04:37 +0000
commit1da636b9f46629c676e995f1e52ba9d553db90c6 (patch)
treef9fc0359f5732fcf1d967fc886d1654320ef19b1 /include/stdbool.h
parent6c0c1a3de38306f5105ac83bd1939798585a738c (diff)
downloadFreeBSD-src-1da636b9f46629c676e995f1e52ba9d553db90c6.zip
FreeBSD-src-1da636b9f46629c676e995f1e52ba9d553db90c6.tar.gz
Guard definitions for use with C++ code.
Submitted by: Ed Hall <edhall@yahoo-inc.com>
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 1e6bd65..f31e63e 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_ */
OpenPOWER on IntegriCloud