From 027e5990378ece9e5098ed5294920dae5503b6f2 Mon Sep 17 00:00:00 2001 From: Bruce Date: Sun, 21 Jul 2024 07:45:21 +0800 Subject: [PATCH] Avoid different function declarations when build as windows DLL (#1959) --- 3rd/lua/lauxlib.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/3rd/lua/lauxlib.c b/3rd/lua/lauxlib.c index 00fa50b6..d698f7ea 100644 --- a/3rd/lua/lauxlib.c +++ b/3rd/lua/lauxlib.c @@ -1150,9 +1150,6 @@ init(void) { CC.L = luaL_newstate(); } - -void luaL_initcodecache(void); - LUALIB_API void luaL_initcodecache(void) { SPIN_INIT(&CC); @@ -1296,8 +1293,6 @@ cache_clear(lua_State *L) { return 0; } -int luaopen_cache(lua_State *L); - LUAMOD_API int luaopen_cache(lua_State *L) { luaL_Reg l[] = { { "clear", cache_clear },