Define bool only if __cplusplus is not defined.
This prevents a C++ compiler from complaining about
redeclaration of C++ built-in type 'bool'
BUG=chromium:231432
TEST=CFLAGS="-clang" emerge-lumpy gdmwimax and wimax_manager passes.
Change-Id: Ibbfa63678e0109181da97779b6484d554bc780ad
Reviewed-on: https://gerrit.chromium.org/gerrit/48128
Reviewed-by: Ben Chan <benchan@chromium.org>
Commit-Queue: Yunlian Jiang <yunlian@chromium.org>
Tested-by: Yunlian Jiang <yunlian@chromium.org>
diff --git a/sdk/gcttype.h b/sdk/gcttype.h
index 643b89f..2ea4da1 100644
--- a/sdk/gcttype.h
+++ b/sdk/gcttype.h
@@ -9,7 +9,9 @@
#if !defined(SDK_TYPEDEF)
#define SDK_TYPEDEF
-typedef char bool;
+#if !defined(__cplusplus)
+typedef char bool;
+#endif
typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned int u32;