Avoid different function declarations when build as windows DLL (#1959)

This commit is contained in:
Bruce
2024-07-21 07:45:21 +08:00
committed by Cloud Wu
parent 0cf8de8649
commit 022c619c63

View File

@@ -1234,9 +1234,6 @@ init(lua_State *L) {
CC.L = newState(L); CC.L = newState(L);
} }
void luaL_initcodecache(void);
LUALIB_API void LUALIB_API void
luaL_initcodecache(void) { luaL_initcodecache(void) {
SPIN_INIT(&CC); SPIN_INIT(&CC);
@@ -1380,8 +1377,6 @@ cache_clear(lua_State *L) {
return 0; return 0;
} }
int luaopen_cache(lua_State *L);
LUAMOD_API int luaopen_cache(lua_State *L) { LUAMOD_API int luaopen_cache(lua_State *L) {
luaL_Reg l[] = { luaL_Reg l[] = {
{ "clear", cache_clear }, { "clear", cache_clear },