summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2021-06-23 14:59:01 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2021-06-25 11:17:53 +0200
commitecc8ffbd8033724b026f10ab435f7054c37f145d (patch)
treeeca7a05f97353caa98bb4325ce10aa0882cb0eb4 /src
parentCompile with 4 threads on Jenkins builds, the build slaves were upgraded (diff)
downloadcuberite-ecc8ffbd8033724b026f10ab435f7054c37f145d.tar
cuberite-ecc8ffbd8033724b026f10ab435f7054c37f145d.tar.gz
cuberite-ecc8ffbd8033724b026f10ab435f7054c37f145d.tar.bz2
cuberite-ecc8ffbd8033724b026f10ab435f7054c37f145d.tar.lz
cuberite-ecc8ffbd8033724b026f10ab435f7054c37f145d.tar.xz
cuberite-ecc8ffbd8033724b026f10ab435f7054c37f145d.tar.zst
cuberite-ecc8ffbd8033724b026f10ab435f7054c37f145d.zip
Diffstat (limited to 'src')
-rw-r--r--src/Bindings/LuaState.cpp19
-rw-r--r--src/Bindings/LuaState.h5
-rw-r--r--src/Bindings/PluginLua.cpp5
3 files changed, 7 insertions, 22 deletions
diff --git a/src/Bindings/LuaState.cpp b/src/Bindings/LuaState.cpp
index 3a1379df1..e4c537967 100644
--- a/src/Bindings/LuaState.cpp
+++ b/src/Bindings/LuaState.cpp
@@ -6,10 +6,7 @@
#include "Globals.h"
#include "LuaState.h"
-extern "C"
-{
- #include "lua/src/lualib.h"
-}
+#include "lua/src/lualib.h"
#undef TOLUA_TEMPLATE_BIND
#include "tolua++/include/tolua++.h"
@@ -34,17 +31,11 @@ extern "C"
-// fwd: "SQLite/lsqlite3.c"
-extern "C"
-{
- int luaopen_lsqlite3(lua_State * L);
-}
+// fwd: "SQLite/lsqlite3.cpp"
+int luaopen_lsqlite3(lua_State * L);
-// fwd: "LuaExpat/lxplib.c":
-extern "C"
-{
- int luaopen_lxp(lua_State * L);
-}
+// fwd: "LuaExpat/lxplib.cpp":
+int luaopen_lxp(lua_State * L);
diff --git a/src/Bindings/LuaState.h b/src/Bindings/LuaState.h
index 420fdad69..d579369f0 100644
--- a/src/Bindings/LuaState.h
+++ b/src/Bindings/LuaState.h
@@ -30,10 +30,7 @@ stays valid but doesn't call into Lua code anymore, returning false for "failure
#pragma once
-extern "C"
-{
- #include "lua/src/lauxlib.h"
-}
+#include "lua/src/lauxlib.h"
#include "../Defines.h"
#include "../FunctionRef.h"
diff --git a/src/Bindings/PluginLua.cpp b/src/Bindings/PluginLua.cpp
index 9b6bccf7c..887e6d699 100644
--- a/src/Bindings/PluginLua.cpp
+++ b/src/Bindings/PluginLua.cpp
@@ -18,10 +18,7 @@
#include "../Root.h"
#include "../WebAdmin.h"
-extern "C"
-{
- #include "lua/src/lauxlib.h"
-}
+#include "lua/src/lauxlib.h"
#undef TOLUA_TEMPLATE_BIND
#include "tolua++/include/tolua++.h"