diff options
author | Andrew Starks <andrew.starks@trms.com> | 2015-01-15 12:39:51 -0600 |
---|---|---|
committer | Andrew Starks <andrew.starks@trms.com> | 2015-01-15 12:39:51 -0600 |
commit | e798c4f07f2c355256076ebcc5ff779a8548c806 (patch) | |
tree | ecb39afa240e505818e0cd3d7fcf67f9fa2b4ba1 /src/lfs.h | |
parent | 5422c7ac6beb2231f41a523ddcd6dfbe16d8b952 (diff) | |
download | luafilesystem-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.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 | ||