-
-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Assimp: Fix compilation with MinGW10 (#6107)
* Assimp: Fix compilation with MinGW10 assimp/assimp#5827 * Fix patch version * Fix checksum * Another patch fix * Update xmake.lua
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/code/Common/DefaultIOStream.cpp b/code/Common/DefaultIOStream.cpp | ||
index e423eae4f8..35bbb67a5a 100644 | ||
--- a/code/Common/DefaultIOStream.cpp | ||
+++ b/code/Common/DefaultIOStream.cpp | ||
@@ -157,9 +157,9 @@ size_t DefaultIOStream::FileSize() const { | ||
return 0; | ||
mCachedSize = (size_t)(fileStat.st_size); | ||
#elif defined _WIN32 | ||
- struct _stat32 fileStat; | ||
+ struct _stat fileStat; | ||
//using fileno + fstat avoids having to handle the filename | ||
- int err = _fstat32(_fileno(mFile), &fileStat); | ||
+ int err = _fstat(_fileno(mFile), &fileStat); | ||
if (0 != err) | ||
return 0; | ||
mCachedSize = (size_t)(fileStat.st_size); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters