diff options
Diffstat (limited to 'Build/source/libs/luafilesystem/src/lfs.c')
-rw-r--r-- | Build/source/libs/luafilesystem/src/lfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Build/source/libs/luafilesystem/src/lfs.c b/Build/source/libs/luafilesystem/src/lfs.c index ee2920412d1..eea8bfaca83 100644 --- a/Build/source/libs/luafilesystem/src/lfs.c +++ b/Build/source/libs/luafilesystem/src/lfs.c @@ -256,6 +256,8 @@ static int remove_dir (lua_State *L) { static int dir_iter (lua_State *L) { #ifdef _WIN32 struct _finddata_t c_file; +#else + struct dirent *entry; #endif dir_data *d = (dir_data *)lua_touserdata (L, lua_upvalueindex (1)); luaL_argcheck (L, !d->closed, 1, "closed directory"); @@ -281,7 +283,6 @@ static int dir_iter (lua_State *L) { } } #else - struct dirent *entry; if ((entry = readdir (d->dir)) != NULL) { lua_pushstring (L, entry->d_name); return 1; |