aboutsummaryrefslogtreecommitdiff
path: root/xtract
diff options
context:
space:
mode:
Diffstat (limited to 'xtract')
-rw-r--r--xtract/xtract_helper.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/xtract/xtract_helper.h b/xtract/xtract_helper.h
index bc5b892..9dabfbc 100644
--- a/xtract/xtract_helper.h
+++ b/xtract/xtract_helper.h
@@ -30,7 +30,16 @@
extern "C" {
#endif
-#include <stdbool.h>
+#ifdef _MSC_VER
+ #ifndef __cplusplus
+ typedef int bool;
+ #define false 0
+ #define true 1
+ #endif
+#else
+ #include <stdbool.h>
+#endif
+
/**
* \defgroup helper helper functions