summaryrefslogtreecommitdiff
path: root/include/epoxy/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/epoxy/common.h')
-rw-r--r--include/epoxy/common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/epoxy/common.h b/include/epoxy/common.h
index a745f16..a0b30b2 100644
--- a/include/epoxy/common.h
+++ b/include/epoxy/common.h
@@ -41,4 +41,12 @@
# define EPOXY_PUBLIC extern
#endif
+#if defined(_MSC_VER) && !defined(__bool_true_false_are_defined) && (_MSC_VER < 1800)
+typedef unsigned char bool;
+# define false 0
+# define true 1
+#else
+# include <stdbool.h>
+#endif
+
#endif /* EPOXY_COMMON_H */