Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2012-11-12 11:03:58 +0000
committerHenrik Rentz-Reichert2012-11-12 11:03:58 +0000
commit1237f5339428de3aa21a04ec5e23cfca40ebaa00 (patch)
tree0b16e00fff63f44777a23b1071bb8d11e09360ce /runtime
parent2114b696f47ff095502ae6293a878baa40381c8e (diff)
downloadorg.eclipse.etrice-1237f5339428de3aa21a04ec5e23cfca40ebaa00.tar.gz
org.eclipse.etrice-1237f5339428de3aa21a04ec5e23cfca40ebaa00.tar.xz
org.eclipse.etrice-1237f5339428de3aa21a04ec5e23cfca40ebaa00.zip
[runtime.c] need boolean if not on Windows
Diffstat (limited to 'runtime')
-rw-r--r--runtime/org.eclipse.etrice.runtime.c/src/platforms/generic/etDatatypes.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/runtime/org.eclipse.etrice.runtime.c/src/platforms/generic/etDatatypes.h b/runtime/org.eclipse.etrice.runtime.c/src/platforms/generic/etDatatypes.h
index 82785b544..07b6a7b45 100644
--- a/runtime/org.eclipse.etrice.runtime.c/src/platforms/generic/etDatatypes.h
+++ b/runtime/org.eclipse.etrice.runtime.c/src/platforms/generic/etDatatypes.h
@@ -19,16 +19,16 @@
*
* */
+#include <stdio.h>
+
#if defined __MINGW32__
#include <windows.h>
+#include <process.h>
#elif defined __GNUC__
#else
#error
#endif
-#include <stdio.h>
-#include <process.h>
-
/* unsigned integer datatypes */
typedef unsigned char uint8;
@@ -52,7 +52,9 @@ typedef char* charPtr;
/* boolean datatypes and values */
typedef char bool; /* TODO: bool, Bool, Boolean, and boolean are already defined in some platforms*/
-// typedef bool boolean;
+#ifndef __MINGW32__
+ typedef bool boolean;
+#endif
#ifndef TRUE
#define TRUE 1

Back to the top