diff options
author | Yang Tse <yangsita@gmail.com> | 2008-08-28 22:41:35 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-08-28 22:41:35 +0000 |
commit | 9b7b2b347f2468222c5ef83eb0e737410456165a (patch) | |
tree | 05807c02adb5ec176d4f15f74fe393fd0d53982b | |
parent | 33638d534700883b9563a69dc06f927e7c8375c8 (diff) |
When not using large file support WIN32's lseek offset is a 'long'.
-rw-r--r-- | lib/setup.h | 2 | ||||
-rw-r--r-- | src/main.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/setup.h b/lib/setup.h index c1f7135e5..864896118 100644 --- a/lib/setup.h +++ b/lib/setup.h @@ -292,7 +292,7 @@ # include <io.h> # include <sys/types.h> # include <sys/stat.h> -# define lseek(fdes,offset,whence) _lseek(fdes, offset, whence) +# define lseek(fdes,offset,whence) _lseek(fdes, (long)offset, whence) # define fstat(fdes,stp) _fstat(fdes, stp) # define stat(fname,stp) _stat(fname, stp) # define struct_stat struct _stat diff --git a/src/main.c b/src/main.c index 784d1750f..d26eecb2f 100644 --- a/src/main.c +++ b/src/main.c @@ -232,7 +232,7 @@ typedef enum { # include <io.h> # include <sys/types.h> # include <sys/stat.h> -# define lseek(fdes,offset,whence) _lseek(fdes, offset, whence) +# define lseek(fdes,offset,whence) _lseek(fdes, (long)offset, whence) # define fstat(fdes,stp) _fstat(fdes, stp) # define stat(fname,stp) _stat(fname, stp) # define struct_stat struct _stat |