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 GitHub
parent 2cfe36a809
commit 027e599037

View File

@@ -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 },