Skip to content

Commit f967bd7

Browse files
authored
Fix for Android build on NDK versions 27+ (#871)
1 parent ea96aa0 commit f967bd7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Build/libHttpClient.Android/CMakeLists.txt

+10
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ if (NOT DEFINED HC_NOZLIB)
8888
"${PATH_TO_ROOT}/External/zlib"
8989
"${PATH_TO_ROOT}/External/zlib/contrib/minizip"
9090
)
91+
92+
set_source_files_properties(
93+
"${PATH_TO_ROOT}/External/zlib/contrib/minizip/ioapi.c"
94+
PROPERTIES COMPILE_DEFINITIONS "MINIZIP_FOPEN_NO_64=1"
95+
)
9196
endif()
9297

9398
set(COMMON_INCLUDE_DIRS
@@ -107,6 +112,11 @@ set(ANDROID_INCLUDE_DIRS
107112
"${PATH_TO_ROOT}/External/opensslGeneratedHeaders/android"
108113
)
109114

115+
add_compile_options(
116+
$<$<COMPILE_LANGUAGE:CXX>:-Wno-error=implicit-function-declaration>
117+
$<$<COMPILE_LANGUAGE:C>:-Wno-error=implicit-function-declaration>
118+
)
119+
110120
#########################
111121
### Set up static lib ###
112122
#########################

0 commit comments

Comments
 (0)