From 3b6ffc3ef57b82a5de17b281a5ea1ffbcff44166 Mon Sep 17 00:00:00 2001 From: Eshed Date: Sat, 15 Oct 2016 03:52:50 +0300 Subject: [PATCH] fix mingw build (mingw supports stat64 nowadays) --- code/DefaultIOStream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/DefaultIOStream.cpp b/code/DefaultIOStream.cpp index e9da3ff70..11bad9b64 100644 --- a/code/DefaultIOStream.cpp +++ b/code/DefaultIOStream.cpp @@ -120,7 +120,7 @@ size_t DefaultIOStream::FileSize() const // // See here for details: // https://www.securecoding.cert.org/confluence/display/seccode/FIO19-C.+Do+not+use+fseek()+and+ftell()+to+compute+the+size+of+a+regular+file -#if defined _WIN32 && !defined __GNUC__ +#if defined _WIN32 struct __stat64 fileStat; int err = _stat64( mFilename.c_str(), &fileStat ); if (0 != err)