Skip to content

Commit b5d6460

Browse files
committed
ext/iconv: Bypass unresolved upstream bug
1 parent 5b5c8bb commit b5d6460

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cmake/ext/iconv/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ if(TARGET Iconv::Iconv)
290290

291291
check_prototype_definition(
292292
iconv
293-
"size_t iconv(iconv_t cd, const char **src, size_t *srcleft, char **dst, size_t *dstleft)"
293+
"size_t iconv(iconv_t cd, const char **src, size_t *srcleft, char **dst, \
294+
size_t *dstleft)"
294295
"0"
295296
"iconv.h"
296297
PHP_EXT_ICONV_CONST
@@ -299,6 +300,8 @@ if(TARGET Iconv::Iconv)
299300

300301
if(PHP_EXT_ICONV_CONST)
301302
target_compile_definitions(php_ext_iconv PRIVATE ICONV_CONST=const)
303+
else()
304+
target_compile_definitions(php_ext_iconv PRIVATE ICONV_CONST=)
302305
endif()
303306
endif()
304307

0 commit comments

Comments
 (0)