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:
Robert Knight 2011-08-22 14:19:07 +01:00
parent ced6b097b4
commit 4bcf379839

View file

@ -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}