mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
build: only set _FILE_OFFSET_BITS on non-Windows
mingw is confused - https://github.com/msys2/MINGW-packages/issues/10591
This commit is contained in:
@@ -82,12 +82,12 @@ if(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
|
||||
endif()
|
||||
|
||||
|
||||
#
|
||||
# Common settings across all projects, dependencies, etc. Always support
|
||||
# 64 bit file operations, even 32 bit platforms.
|
||||
#
|
||||
# 64 bit file operations, even on 32 bit platforms.
|
||||
|
||||
add_definitions(-D_FILE_OFFSET_BITS=64)
|
||||
if(NOT WIN32)
|
||||
add_definitions(-D_FILE_OFFSET_BITS=64)
|
||||
endif()
|
||||
|
||||
|
||||
# Modules
|
||||
|
||||
Reference in New Issue
Block a user