aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2014-11-12 15:57:35 -0200
committerHisham Muhammad <hisham@gobolinux.org>2014-11-12 15:57:35 -0200
commit5422c7ac6beb2231f41a523ddcd6dfbe16d8b952 (patch)
tree81843337d144973c84d4f0a376485569c18d93da /src
parenta0ca710ceac45d41082ec5e48f2ae5a2320ae1cd (diff)
parent8f2949974a6329296cb643bd9507983e8b589d9a (diff)
downloadluafilesystem-5422c7ac6beb2231f41a523ddcd6dfbe16d8b952.tar.gz
luafilesystem-5422c7ac6beb2231f41a523ddcd6dfbe16d8b952.tar.bz2
luafilesystem-5422c7ac6beb2231f41a523ddcd6dfbe16d8b952.zip
Merge pull request #46 from moteus/master
Add. Travis files.
Diffstat (limited to 'src')
-rw-r--r--src/lfs.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lfs.c b/src/lfs.c
index 5461f82..cea87ef 100644
--- a/src/lfs.c
+++ b/src/lfs.c
@@ -69,6 +69,14 @@
69#define LFS_VERSION "1.6.2" 69#define LFS_VERSION "1.6.2"
70#define LFS_LIBNAME "lfs" 70#define LFS_LIBNAME "lfs"
71 71
72#if LUA_VERSION_NUM >= 503 /* Lua 5.3 */
73
74#ifndef luaL_optlong
75#define luaL_optlong luaL_optinteger
76#endif
77
78#endif
79
72#if LUA_VERSION_NUM < 502 80#if LUA_VERSION_NUM < 502
73# define luaL_newlib(L,l) (lua_newtable(L), luaL_register(L,NULL,l)) 81# define luaL_newlib(L,l) (lua_newtable(L), luaL_register(L,NULL,l))
74#endif 82#endif