From 1da636b9f46629c676e995f1e52ba9d553db90c6 Mon Sep 17 00:00:00 2001 From: obrien Date: Wed, 19 Jun 2002 06:04:37 +0000 Subject: Guard definitions for use with C++ code. Submitted by: Ed Hall --- include/stdbool.h | 4 ++++ 1 file changed, 4 insertions(+) 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_ */ -- cgit v1.1