Commit 85a46ad6 authored by Hendrik Leppkes's avatar Hendrik Leppkes Committed by Martin Storsjö

win32: Use 64-bit fstat/lseek variants for MSVC as well

Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent ad040259
......@@ -29,6 +29,9 @@
#if defined(_WIN32) && !defined(__MINGW32CE__)
#undef open
#undef lseek
#undef stat
#undef fstat
#include <fcntl.h>
#include <io.h>
#include <windows.h>
......
......@@ -31,7 +31,7 @@
#include <sys/stat.h>
#if defined(__MINGW32__) && !defined(__MINGW32CE__)
#if defined(_WIN32) && !defined(__MINGW32CE__)
# include <fcntl.h>
# define lseek(f,p,w) _lseeki64((f), (p), (w))
# define stat _stati64
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment