summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginLua.cpp
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-04-02 16:51:48 +0200
committerTycho <work.tycho+git@gmail.com>2014-04-02 16:51:48 +0200
commit0075b2f72eb18f9283ae02b7b9a69bdb52d2bd46 (patch)
treeedf3601fa8b13bfd93be14df2ba0fb112d2cad3d /src/Bindings/PluginLua.cpp
parentMerge branch 'master' into HTTPSizeT (diff)
parentFixed boat placement code. (diff)
downloadcuberite-0075b2f72eb18f9283ae02b7b9a69bdb52d2bd46.tar
cuberite-0075b2f72eb18f9283ae02b7b9a69bdb52d2bd46.tar.gz
cuberite-0075b2f72eb18f9283ae02b7b9a69bdb52d2bd46.tar.bz2
cuberite-0075b2f72eb18f9283ae02b7b9a69bdb52d2bd46.tar.lz
cuberite-0075b2f72eb18f9283ae02b7b9a69bdb52d2bd46.tar.xz
cuberite-0075b2f72eb18f9283ae02b7b9a69bdb52d2bd46.tar.zst
cuberite-0075b2f72eb18f9283ae02b7b9a69bdb52d2bd46.zip
Diffstat (limited to 'src/Bindings/PluginLua.cpp')
-rw-r--r--src/Bindings/PluginLua.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Bindings/PluginLua.cpp b/src/Bindings/PluginLua.cpp
index 7e69e0f4b..dcc816839 100644
--- a/src/Bindings/PluginLua.cpp
+++ b/src/Bindings/PluginLua.cpp
@@ -5,7 +5,11 @@
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
+#ifdef __APPLE__
+#define LUA_USE_MACOSX
+#else
#define LUA_USE_POSIX
+#endif
#include "PluginLua.h"
#include "../CommandOutput.h"
@@ -14,6 +18,7 @@ extern "C"
#include "lua/src/lualib.h"
}
+#undef TOLUA_TEMPLATE_BIND
#include "tolua++/include/tolua++.h"