瀏覽代碼

Merge pull request #1033 from ashdnazg/fix_mingw

Fix mingw build (mingw supports stat64 nowadays)
Kim Kulling 9 年之前
父節點
當前提交
c43ab39670
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/DefaultIOStream.cpp

+ 1 - 1
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)