Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keplerproject/luafilesystem.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Melnichenko <mpeterval@gmail.com>2018-03-15 22:10:09 +0300
committerHisham Muhammad <hisham@gobolinux.org>2020-04-21 00:50:38 +0300
commit04ba8d686ab0e6ee7daaea092800ea44fcef40b5 (patch)
treefaa3a9961784c618fd7b388e5795568546392f78
parent04bdaf9a1eb1406f83321e98daf08b0f06a8401b (diff)
Support Lua 5.4
-rw-r--r--src/lfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lfs.c b/src/lfs.c
index 352e17b..cca4411 100644
--- a/src/lfs.c
+++ b/src/lfs.c
@@ -77,7 +77,7 @@
#define LFS_VERSION "1.7.0"
#define LFS_LIBNAME "lfs"
-#if LUA_VERSION_NUM >= 503 /* Lua 5.3 */
+#if LUA_VERSION_NUM >= 503 /* Lua 5.3+ */
#ifndef luaL_optlong
#define luaL_optlong luaL_optinteger
@@ -226,7 +226,7 @@ static FILE *check_file (lua_State *L, int idx, const char *funcname) {
return 0;
} else
return *fh;
-#elif LUA_VERSION_NUM >= 502 && LUA_VERSION_NUM <= 503
+#elif LUA_VERSION_NUM >= 502 && LUA_VERSION_NUM <= 504
luaL_Stream *fh = (luaL_Stream *)luaL_checkudata (L, idx, "FILE*");
if (fh->closef == 0 || fh->f == NULL) {
luaL_error (L, "%s: closed file", funcname);