Merge pull request #1033 from ashdnazg/fix_mingw

Fix mingw build (mingw supports stat64 nowadays)
pull/1034/head^2
Kim Kulling 2016-10-15 07:51:19 +02:00 committed by GitHub
commit c43ab39670
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ size_t DefaultIOStream::FileSize() const
// //
// See here for details: // 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 // 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; struct __stat64 fileStat;
int err = _stat64( mFilename.c_str(), &fileStat ); int err = _stat64( mFilename.c_str(), &fileStat );
if (0 != err) if (0 != err)