Fix dll issues on Windows

This commit is contained in:
TSnake41 2021-11-04 20:43:28 +01:00
parent 0eca951b26
commit 95d558cb98

View File

@ -40,6 +40,9 @@
extern const char *raylua_boot_str; extern const char *raylua_boot_str;
#ifdef WIN32
__declspec(dllexport)
#endif
void raylua_boot(lua_State *L, lua_CFunction loadfile, lua_CFunction listfiles, void raylua_boot(lua_State *L, lua_CFunction loadfile, lua_CFunction listfiles,
bool repl) bool repl)
{ {
@ -77,6 +80,9 @@ void raylua_boot(lua_State *L, lua_CFunction loadfile, lua_CFunction listfiles,
} }
} }
#ifdef WIN32
__declspec(dllexport)
#endif
int luaopen_raylua(lua_State *L) int luaopen_raylua(lua_State *L)
{ {
raylua_boot(L, NULL, NULL, false); raylua_boot(L, NULL, NULL, false);