From 08d68d18e0c32c0ec23afac4e139932b3f5e0795 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Wed, 19 Jun 2002 06:04:37 +0000 Subject: [PATCH] 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 1e6bd6578c5..f31e63e409f 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_ */