diff options
author | Alexey Melnichuk <mimir@newmail.ru> | 2014-01-04 10:02:16 +0300 |
---|---|---|
committer | Alexey Melnichuk <mimir@newmail.ru> | 2014-01-04 10:02:16 +0300 |
commit | ab8348e9bc404705a88bd1a9736dc9d947882fec (patch) | |
tree | ee534a9139513a6a56f83888a93dd2528bf8c212 /src/lfs.c | |
parent | 2fd989cd6c777583be1c93616018c55b2cbb1bcf (diff) | |
download | luafilesystem-ab8348e9bc404705a88bd1a9736dc9d947882fec.tar.gz luafilesystem-ab8348e9bc404705a88bd1a9736dc9d947882fec.tar.bz2 luafilesystem-ab8348e9bc404705a88bd1a9736dc9d947882fec.zip |
Fix. Use intptr_t to file handle on Windows (#26)
Tested on MS VS2008(x32) MinGW(x32) and MS VS2012(x64)
Diffstat (limited to 'src/lfs.c')
-rw-r--r-- | src/lfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -94,7 +94,7 @@ | |||
94 | typedef struct dir_data { | 94 | typedef struct dir_data { |
95 | int closed; | 95 | int closed; |
96 | #ifdef _WIN32 | 96 | #ifdef _WIN32 |
97 | long hFile; | 97 | intptr_t hFile; |
98 | char pattern[MAX_PATH+1]; | 98 | char pattern[MAX_PATH+1]; |
99 | #else | 99 | #else |
100 | DIR *dir; | 100 | DIR *dir; |