diff options
| author | tomas <tomas> | 2006-06-08 16:16:23 +0000 |
|---|---|---|
| committer | tomas <tomas> | 2006-06-08 16:16:23 +0000 |
| commit | 59ef09d270fbcc74b45bfc617dbdba45783169d8 (patch) | |
| tree | 3dfd543cb1efbf58098a2355ff03e08e834ba15e | |
| parent | ac0de9a462e1de1869af20ddba99ed453ae0c319 (diff) | |
| download | luafilesystem-59ef09d270fbcc74b45bfc617dbdba45783169d8.tar.gz luafilesystem-59ef09d270fbcc74b45bfc617dbdba45783169d8.tar.bz2 luafilesystem-59ef09d270fbcc74b45bfc617dbdba45783169d8.zip | |
Adding support for compilation on both Lua 5.0 and Lua 5.1
| -rw-r--r-- | src/lfs.c | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -14,7 +14,7 @@ | |||
| 14 | ** lfs.touch (filepath [, atime [, mtime]]) | 14 | ** lfs.touch (filepath [, atime [, mtime]]) |
| 15 | ** lfs.unlock (fh) | 15 | ** lfs.unlock (fh) |
| 16 | ** | 16 | ** |
| 17 | ** $Id: lfs.c,v 1.32 2006/03/14 13:39:38 tomas Exp $ | 17 | ** $Id: lfs.c,v 1.33 2006/06/08 16:16:23 tomas Exp $ |
| 18 | */ | 18 | */ |
| 19 | 19 | ||
| 20 | #include <errno.h> | 20 | #include <errno.h> |
| @@ -39,7 +39,9 @@ | |||
| 39 | #include "lua.h" | 39 | #include "lua.h" |
| 40 | #include "lauxlib.h" | 40 | #include "lauxlib.h" |
| 41 | #include "lualib.h" | 41 | #include "lualib.h" |
| 42 | #if ! defined (LUA_VERSION_NUM) || LUA_VERSION_NUM < 501 | ||
| 42 | #include "compat-5.1.h" | 43 | #include "compat-5.1.h" |
| 44 | #endif | ||
| 43 | 45 | ||
| 44 | #include "lfs.h" | 46 | #include "lfs.h" |
| 45 | 47 | ||
