From fa9334abbabd43e0a016b868f108f4b431d1420c Mon Sep 17 00:00:00 2001 From: darkstar Date: Wed, 21 Feb 2018 20:52:00 +0100 Subject: [PATCH] MSVC: Use the correct functions for file access --- src/plat.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plat.h b/src/plat.h index aa5c47e..e59ffe8 100644 --- a/src/plat.h +++ b/src/plat.h @@ -65,6 +65,11 @@ # define fseeko64 fseeko # define ftello64 ftello # define off64_t off_t +#elif defined(_MSC_VER) +# define fopen64 fopen +# define fseeko64 _fseeki64 +# define ftello64 _ftelli64 +# define off64_t off_t #endif