aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-10-30 15:21:28 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-10-30 15:21:28 +0000
commitac8fb20a112a207e20742a605cd1ab0464d07c94 (patch)
treeac0512e17158ec347165da342296a26a25c5a4d3
parentbeb0e755cdeda58dce45e96ae6d7789548c0c298 (diff)
make the C++ boolean hack not cause collisions
svn path=/trunk/externals/pdp/; revision=12698
-rw-r--r--include/pdp_types.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/pdp_types.h b/include/pdp_types.h
index 85d0716..d2b0586 100644
--- a/include/pdp_types.h
+++ b/include/pdp_types.h
@@ -46,9 +46,13 @@ typedef unsigned int u32;
typedef unsigned long long u64;
-#ifndef __cplusplus
+#ifndef bool
typedef int bool;
+#endif
+#ifndef true
#define true 1;
+#endif
+#ifndef false
#define false 0;
#endif