Merge pull request #4336 from wwylele/file-util-mingw

Only redefine some 64-bit file operation for MSVC
This commit is contained in:
Weiyi Wang
2018-10-21 20:34:48 -04:00
committed by GitHub
2 changed files with 9 additions and 6 deletions

View File

@@ -170,7 +170,7 @@ endif()
# On modern Unixes, this is typically already the case. The lone exception is
# glibc, which may default to 32 bits. glibc allows this to be configured
# by setting _FILE_OFFSET_BITS.
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
if(CMAKE_SYSTEM_NAME STREQUAL "Linux" OR MINGW)
add_definitions(-D_FILE_OFFSET_BITS=64)
endif()