summaryrefslogtreecommitdiffstats
path: root/src/Bindings/LuaState.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2024-03-11 23:16:17 +0100
committerMattes D <github@xoft.cz>2024-03-15 00:24:05 +0100
commit7b8f6eb951b0e42bef8afe651f8531875e37f913 (patch)
treeb19309e7c0aeb4e2c5abc58d0ebcd95375c03d11 /src/Bindings/LuaState.cpp
parentFix build under clang-15. (diff)
downloadcuberite-7b8f6eb951b0e42bef8afe651f8531875e37f913.tar
cuberite-7b8f6eb951b0e42bef8afe651f8531875e37f913.tar.gz
cuberite-7b8f6eb951b0e42bef8afe651f8531875e37f913.tar.bz2
cuberite-7b8f6eb951b0e42bef8afe651f8531875e37f913.tar.lz
cuberite-7b8f6eb951b0e42bef8afe651f8531875e37f913.tar.xz
cuberite-7b8f6eb951b0e42bef8afe651f8531875e37f913.tar.zst
cuberite-7b8f6eb951b0e42bef8afe651f8531875e37f913.zip
Diffstat (limited to 'src/Bindings/LuaState.cpp')
-rw-r--r--src/Bindings/LuaState.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Bindings/LuaState.cpp b/src/Bindings/LuaState.cpp
index 3d65045dd..08d2b8b2e 100644
--- a/src/Bindings/LuaState.cpp
+++ b/src/Bindings/LuaState.cpp
@@ -6,7 +6,10 @@
#include "Globals.h"
#include "LuaState.h"
-#include "lua/src/lualib.h"
+extern "C"
+{
+ #include "lua/src/lualib.h"
+}
#undef TOLUA_TEMPLATE_BIND
#include "tolua++/include/tolua++.h"
@@ -32,7 +35,10 @@
// fwd: "SQLite/lsqlite3.cpp"
-int luaopen_lsqlite3(lua_State * L);
+extern "C"
+{
+ int luaopen_lsqlite3(lua_State * L);
+}
// fwd: "LuaExpat/lxplib.cpp":
int luaopen_lxp(lua_State * L);