summaryrefslogtreecommitdiff
path: root/src/lua/tolua.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/tolua.h')
-rw-r--r--src/lua/tolua.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lua/tolua.h b/src/lua/tolua.h
index b4748f52..ab86976c 100644
--- a/src/lua/tolua.h
+++ b/src/lua/tolua.h
@@ -27,6 +27,10 @@ extern "C" {
#include "lua.h"
+/* Evil hack for C++ bool_ vs. C bool. */
+#ifndef __cplusplus
+typedef unsigned char bool;
+#endif
/*************************************** Exported functions */