mirror of
https://github.com/lunarmodules/luafilesystem.git
synced 2026-07-25 13:13:07 +00:00
Update src/lfs.c
Fix Windows build: make_link now returns int as it should
This commit is contained in:
@@ -408,7 +408,7 @@ static int make_link(lua_State *L)
|
|||||||
return pushresult(L,
|
return pushresult(L,
|
||||||
(lua_toboolean(L,3) ? symlink : link)(oldpath, newpath), NULL);
|
(lua_toboolean(L,3) ? symlink : link)(oldpath, newpath), NULL);
|
||||||
#else
|
#else
|
||||||
pusherror(L, "make_link is not supported on Windows");
|
return pusherror(L, "make_link is not supported on Windows");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user