windows fix SetFilePointer args
This restricts it to 4GB files on 32-bit Windows but it'll do for now. Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
2eedea9884
commit
a5fe1192cf
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@
|
|||
|
||||
#define compatible_close(fd) closesocket(fd)
|
||||
#define compatible_file_close(fd) CloseHandle(fd)
|
||||
#define compatible_file_seek_cur(fd, offset) SetFilePointer(fd, offset, FILE_CURRENT)
|
||||
#define compatible_file_seek_cur(fd, offset) SetFilePointer(fd, offset, NULL, FILE_CURRENT)
|
||||
#define compatible_file_read(amount, fd, buf, len) {\
|
||||
DWORD _amount; \
|
||||
if (!ReadFile(fd, buf, len, &amount, NULL)) \
|
||||
|
|
Loading…
Add table
Reference in a new issue