diff --git a/apps/openmw-mp/Script/Functions/Server.hpp b/apps/openmw-mp/Script/Functions/Server.hpp index aee959acd..ace63a6dc 100644 --- a/apps/openmw-mp/Script/Functions/Server.hpp +++ b/apps/openmw-mp/Script/Functions/Server.hpp @@ -77,7 +77,7 @@ namespace ServerFunctions * * \return The type of the operating system. */ - static const char *GetOperatingSystemType() noexcept; + EXPORT_APIFUNCTION const char *CDECL GetOperatingSystemType() noexcept; /** * \brief Get the architecture type used by the server. @@ -86,7 +86,7 @@ namespace ServerFunctions * * \return The architecture type. */ - static const char *GetArchitectureType() noexcept; + EXPORT_APIFUNCTION const char *CDECL GetArchitectureType() noexcept; /** * \brief Get the TES3MP version of the server. diff --git a/apps/openmw-mp/Script/LangLua/LangLua.hpp b/apps/openmw-mp/Script/LangLua/LangLua.hpp index 2de5ae2f5..95a9c74fd 100644 --- a/apps/openmw-mp/Script/LangLua/LangLua.hpp +++ b/apps/openmw-mp/Script/LangLua/LangLua.hpp @@ -45,12 +45,12 @@ public: virtual bool IsCallbackPresent(const char *name) override; virtual boost::any Call(const char *name, const char *argl, int buf, ...) override; virtual boost::any Call(const char *name, const char *argl, const std::vector &args) override; -private: - static std::set packageCPath; - static std::set packagePath; static void Init(); static void Free(); +private: + static std::set packageCPath; + static std::set packagePath; };