diff --git a/LuaEngine.cpp b/LuaEngine.cpp index dc1bd5c..59ed1e8 100644 --- a/LuaEngine.cpp +++ b/LuaEngine.cpp @@ -22,6 +22,12 @@ #include #endif +extern "C" +{ +#include "lualib.h" +#include "lauxlib.h" +}; + Eluna::ScriptList Eluna::lua_scripts; Eluna::ScriptList Eluna::lua_extensions; std::string Eluna::lua_folderpath; diff --git a/LuaEngine.h b/LuaEngine.h index 6649e49..82a2efb 100644 --- a/LuaEngine.h +++ b/LuaEngine.h @@ -23,8 +23,6 @@ extern "C" { #include "lua.h" -#include "lualib.h" -#include "lauxlib.h" }; #ifdef TRINITY