Commit c876d6a5 authored by Rosen Penev's avatar Rosen Penev Committed by Max Kellermann

lib/icu: fix build without libc iconv support

Need to check for it in iconv.h. Otherwise meson prefixes a __builtin variant in the check.
parent 3c745b4b
......@@ -18,7 +18,7 @@ if icu_dep.found()
'Init.cxx',
]
elif not get_option('iconv').disabled()
have_iconv = compiler.has_function('iconv')
have_iconv = compiler.has_function('iconv', prefix : '#include <iconv.h>')
conf.set('HAVE_ICONV', have_iconv)
if not have_iconv and get_option('iconv').enabled()
error('iconv() not available')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment