summaryrefslogtreecommitdiff
path: root/luafilesystem.h
diff options
context:
space:
mode:
authortomas <tomas>2004-07-27 14:15:24 +0000
committertomas <tomas>2004-07-27 14:15:24 +0000
commit8addf14a396466982f62503a6dfa5793a53b1b8e (patch)
tree74d9db96683d623e3e789e2e51c7434da7ef6be4 /luafilesystem.h
downloadluafilesystem-8addf14a396466982f62503a6dfa5793a53b1b8e.tar.gz
luafilesystem-8addf14a396466982f62503a6dfa5793a53b1b8e.tar.bz2
luafilesystem-8addf14a396466982f62503a6dfa5793a53b1b8e.zip
Initial revision
Diffstat (limited to 'luafilesystem.h')
-rw-r--r--luafilesystem.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/luafilesystem.h b/luafilesystem.h
new file mode 100644
index 0000000..6178dd7
--- /dev/null
+++ b/luafilesystem.h
@@ -0,0 +1,10 @@
1/* Define 'chdir' for systems that do not implement it */
2/* $Id: luafilesystem.h,v 1.1 2004/07/27 14:15:24 tomas Exp $ */
3#ifdef NO_CHDIR
4#define chdir(p) (-1)
5#define chdir_error "Function 'chdir' not provided by system"
6#else
7#define chdir_error strerror(errno)
8#endif
9
10int luaopen_filesystem (lua_State *L);