fixed android zlib compile error.
parent
affedc139e
commit
59ea3b6c85
|
@ -230,10 +230,10 @@ ELSEIF( CMAKE_COMPILER_IS_MINGW )
|
|||
ADD_DEFINITIONS( -U__STRICT_ANSI__ )
|
||||
ENDIF()
|
||||
|
||||
if(IOS)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fembed-bitcode -O3")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fembed-bitcode -O3")
|
||||
endif(IOS)
|
||||
if (IOS)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fembed-bitcode -O3")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fembed-bitcode -O3")
|
||||
endif()
|
||||
|
||||
if (ASSIMP_COVERALLS)
|
||||
MESSAGE(STATUS "Coveralls enabled")
|
||||
|
|
|
@ -77,8 +77,9 @@ extern "C" {
|
|||
the consistency of the compressed data, so the library should never crash
|
||||
even in the case of corrupted input.
|
||||
*/
|
||||
#ifdef __ANDROID__
|
||||
using zcrc_t = unsigned_long;
|
||||
|
||||
#ifdef __ANDROID__
|
||||
typedef unsigned long zcrc_t;
|
||||
#endif
|
||||
|
||||
typedef voidpf (*alloc_func) OF((voidpf opaque, uInt items, uInt size));
|
||||
|
|
Loading…
Reference in New Issue