From 95d558cb98da42d727204757e562006e06b0a277 Mon Sep 17 00:00:00 2001 From: TSnake41 Date: Thu, 4 Nov 2021 20:43:28 +0100 Subject: [PATCH] Fix dll issues on Windows --- src/raylua.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/raylua.c b/src/raylua.c index 81fef93..4e21941 100644 --- a/src/raylua.c +++ b/src/raylua.c @@ -40,6 +40,9 @@ extern const char *raylua_boot_str; +#ifdef WIN32 +__declspec(dllexport) +#endif void raylua_boot(lua_State *L, lua_CFunction loadfile, lua_CFunction listfiles, 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) { raylua_boot(L, NULL, NULL, false);