aboutsummaryrefslogtreecommitdiff
path: root/src/lfs.c
diff options
context:
space:
mode:
authorAlexey Melnichuk <mimir@newmail.ru>2014-01-04 10:02:16 +0300
committerAlexey Melnichuk <mimir@newmail.ru>2014-01-04 10:02:16 +0300
commitab8348e9bc404705a88bd1a9736dc9d947882fec (patch)
treeee534a9139513a6a56f83888a93dd2528bf8c212 /src/lfs.c
parent2fd989cd6c777583be1c93616018c55b2cbb1bcf (diff)
downloadluafilesystem-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lfs.c b/src/lfs.c
index cfed850..b7c4fcd 100644
--- a/src/lfs.c
+++ b/src/lfs.c
@@ -94,7 +94,7 @@
94typedef struct dir_data { 94typedef 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;