aboutsummaryrefslogtreecommitdiff
path: root/src/lfs.h
diff options
context:
space:
mode:
authorHisham <hisham@gobolinux.org>2016-10-19 01:36:11 -0400
committerHisham <hisham@gobolinux.org>2016-10-19 01:36:11 -0400
commitb1f0f80141fe4ddd622e7f525cd0da4d24ce72af (patch)
tree270c8eb43212f0acc97f3dac4568542abc9a1acd /src/lfs.h
parentaa18f3e127b3d11344d6472fe3647cdf0e8a8f08 (diff)
parent3c4e563d9c140319e28c419f2710b51a2f6d6d24 (diff)
downloadluafilesystem-2.0.tar.gz
luafilesystem-2.0.tar.bz2
luafilesystem-2.0.zip
Merge branch 'master' into 2.02.0
Diffstat (limited to 'src/lfs.h')
-rw-r--r--src/lfs.h24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/lfs.h b/src/lfs.h
index a621d04..7f7d2ab 100644
--- a/src/lfs.h
+++ b/src/lfs.h
@@ -5,27 +5,29 @@
5 5
6/* Define 'chdir' for systems that do not implement it */ 6/* Define 'chdir' for systems that do not implement it */
7#ifdef NO_CHDIR 7#ifdef NO_CHDIR
8#define chdir(p) (-1) 8 #define chdir(p) (-1)
9#define chdir_error "Function 'chdir' not provided by system" 9 #define chdir_error "Function 'chdir' not provided by system"
10#else 10#else
11#define chdir_error strerror(errno) 11 #define chdir_error strerror(errno)
12
13#endif 12#endif
14 13
15#ifdef _WIN32 14#ifdef _WIN32
16#define chdir(p) (_chdir(p)) 15 #define chdir(p) (_chdir(p))
17#define getcwd(d, s) (_getcwd(d, s)) 16 #define getcwd(d, s) (_getcwd(d, s))
18#define rmdir(p) (_rmdir(p)) 17 #define rmdir(p) (_rmdir(p))
19#ifndef fileno 18 #define LFS_EXPORT __declspec (dllexport)
20#define fileno(f) (_fileno(f)) 19 #ifndef fileno
21#endif 20 #define fileno(f) (_fileno(f))
21 #endif
22#else
23 #define LFS_EXPORT
22#endif 24#endif
23 25
24#ifdef __cplusplus 26#ifdef __cplusplus
25extern "C" { 27extern "C" {
26#endif 28#endif
27 29
28int luaopen_lfs (lua_State *L); 30LFS_EXPORT int luaopen_lfs (lua_State *L);
29 31
30#ifdef __cplusplus 32#ifdef __cplusplus
31} 33}