aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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