summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/luafilesystem/src/lfs.h
diff options
context:
space:
mode:
authorLuigi Scarso <luigi.scarso@gmail.com>2018-01-17 18:00:12 +0000
committerLuigi Scarso <luigi.scarso@gmail.com>2018-01-17 18:00:12 +0000
commitf100e939b3262ac391fe767d591d1a316ab59f3a (patch)
tree53787d7aa79da3a8b10df0049cfe623cf0f2bd89 /Build/source/texk/web2c/luatexdir/luafilesystem/src/lfs.h
parent345e6b3ddab394ae88cd0d916992bc2bc0f8695d (diff)
Luatex 1.07 --- luatex and luatex53
git-svn-id: svn://tug.org/texlive/trunk@46348 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/luafilesystem/src/lfs.h')
-rw-r--r--Build/source/texk/web2c/luatexdir/luafilesystem/src/lfs.h31
1 files changed, 24 insertions, 7 deletions
diff --git a/Build/source/texk/web2c/luatexdir/luafilesystem/src/lfs.h b/Build/source/texk/web2c/luatexdir/luafilesystem/src/lfs.h
index 4b52780bb3f..458756404ed 100644
--- a/Build/source/texk/web2c/luatexdir/luafilesystem/src/lfs.h
+++ b/Build/source/texk/web2c/luatexdir/luafilesystem/src/lfs.h
@@ -1,17 +1,34 @@
/*
** LuaFileSystem
-** Copyright Kepler Project 2003 (http://www.keplerproject.org/luafilesystem)
-**
-** $Id: lfs.h,v 1.5 2008/02/19 20:08:23 mascarenhas Exp $
+** Copyright Kepler Project 2003 - 2017 (http://keplerproject.github.io/luafilesystem)
*/
/* Define 'chdir' for systems that do not implement it */
#ifdef NO_CHDIR
-#define chdir(p) (-1)
-#define chdir_error "Function 'chdir' not provided by system"
+ #define chdir(p) (-1)
+ #define chdir_error "Function 'chdir' not provided by system"
#else
-#define chdir_error strerror(errno)
+ #define chdir_error strerror(errno)
#endif
+#ifdef _WIN32
+ #define chdir(p) (_chdir(p))
+ #define getcwd(d, s) (_getcwd(d, s))
+ #define rmdir(p) (_rmdir(p))
+ #define LFS_EXPORT __declspec (dllexport)
+ #ifndef fileno
+ #define fileno(f) (_fileno(f))
+ #endif
+#else
+ #define LFS_EXPORT
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+LFS_EXPORT int luaopen_lfs (lua_State *L);
-int luaopen_lfs (lua_State *L);
+#ifdef __cplusplus
+}
+#endif