aboutsummaryrefslogtreecommitdiff
path: root/src/lfs.h
diff options
context:
space:
mode:
authorAndrew Starks <andrew.starks@trms.com>2015-01-15 12:39:51 -0600
committerAndrew Starks <andrew.starks@trms.com>2015-01-15 12:39:51 -0600
commite798c4f07f2c355256076ebcc5ff779a8548c806 (patch)
treeecb39afa240e505818e0cd3d7fcf67f9fa2b4ba1 /src/lfs.h
parent5422c7ac6beb2231f41a523ddcd6dfbe16d8b952 (diff)
downloadluafilesystem-e798c4f07f2c355256076ebcc5ff779a8548c806.tar.gz
luafilesystem-e798c4f07f2c355256076ebcc5ff779a8548c806.tar.bz2
luafilesystem-e798c4f07f2c355256076ebcc5ff779a8548c806.zip
Updated to support Lua 5.3. Fixed to supress warnings in windows. Removed extra null byte off of const string (windows only).
Diffstat (limited to 'src/lfs.h')
-rw-r--r--src/lfs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lfs.h b/src/lfs.h
index 4b52780..ddd454d 100644
--- a/src/lfs.h
+++ b/src/lfs.h
@@ -11,6 +11,14 @@
11#define chdir_error "Function 'chdir' not provided by system" 11#define chdir_error "Function 'chdir' not provided by system"
12#else 12#else
13#define chdir_error strerror(errno) 13#define chdir_error strerror(errno)
14
15#endif
16
17#ifdef _WIN32
18#define chdir(p) (_chdir(p))
19#define getcwd(d, s) (_getcwd(d, s))
20#define rmdir(p) (_rmdir(p))
21#define fileno(f) (_fileno(f))
14#endif 22#endif
15 23
16 24