diff options
Diffstat (limited to 'runtime/org.eclipse.etrice.runtime.cpp/src/platforms/generic/etDatatypes.h')
-rw-r--r-- | runtime/org.eclipse.etrice.runtime.cpp/src/platforms/generic/etDatatypes.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/org.eclipse.etrice.runtime.cpp/src/platforms/generic/etDatatypes.h b/runtime/org.eclipse.etrice.runtime.cpp/src/platforms/generic/etDatatypes.h index 67c76aebf..dfae6df6c 100644 --- a/runtime/org.eclipse.etrice.runtime.cpp/src/platforms/generic/etDatatypes.h +++ b/runtime/org.eclipse.etrice.runtime.cpp/src/platforms/generic/etDatatypes.h @@ -39,7 +39,11 @@ typedef float float32; typedef double float64;
/* boolean datatypes and values */
-//typedef char bool; /* TODO: bool, Bool, Boolean, and boolean are already defined in some platforms*/
+
+#ifndef __cplusplus
+typedef char bool; /* TODO: bool, Bool, Boolean, and boolean are already defined in some platforms*/
+#endif /* __cplusplus */
+
//typedef bool boolean;
#ifndef TRUE
#define TRUE 1
|