mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2024-11-22 11:51:09 +00:00
Fix minizip library compilation under OS X
Set the USE_FILE32API flag on Mac since fopen64() and several related calls do not exist on that platform which uses 64bit I/O in the standard file methods. See http://stackoverflow.com/questions/4003479/how-to-enable-large-file-support-under-darwin for details.
This commit is contained in:
parent
ced6b097b4
commit
4bcf379839
1 changed files with 7 additions and 0 deletions
7
external/minizip/CMakeLists.txt
vendored
7
external/minizip/CMakeLists.txt
vendored
|
@ -16,6 +16,13 @@ set (HEADERS
|
|||
zip.h
|
||||
)
|
||||
|
||||
if (APPLE)
|
||||
# Mac OS X does not have fopen64()
|
||||
# and several related functions as the standard fopen()
|
||||
# calls are 64bit
|
||||
add_definitions("-DUSE_FILE32API")
|
||||
endif()
|
||||
|
||||
add_library(minizip
|
||||
${SOURCES}
|
||||
${HEADERS}
|
||||
|
|
Loading…
Reference in a new issue