mirror of
https://github.com/lunarmodules/luafilesystem.git
synced 2026-07-22 11:03:07 +00:00
Adding support for compilation on both Lua 5.0 and Lua 5.1
This commit is contained in:
@@ -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 <errno.h>
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user