From 59ef09d270fbcc74b45bfc617dbdba45783169d8 Mon Sep 17 00:00:00 2001 From: tomas Date: Thu, 8 Jun 2006 16:16:23 +0000 Subject: Adding support for compilation on both Lua 5.0 and Lua 5.1 --- src/lfs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/lfs.c b/src/lfs.c index 7c8f62a..068fd7f 100644 --- a/src/lfs.c +++ b/src/lfs.c @@ -14,7 +14,7 @@ ** lfs.touch (filepath [, atime [, mtime]]) ** lfs.unlock (fh) ** -** $Id: lfs.c,v 1.32 2006/03/14 13:39:38 tomas Exp $ +** $Id: lfs.c,v 1.33 2006/06/08 16:16:23 tomas Exp $ */ #include @@ -39,7 +39,9 @@ #include "lua.h" #include "lauxlib.h" #include "lualib.h" +#if ! defined (LUA_VERSION_NUM) || LUA_VERSION_NUM < 501 #include "compat-5.1.h" +#endif #include "lfs.h" -- cgit v1.2.3-55-g6feb