mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 05:56:14 +01:00
Merge branch 'dont-use-gnulib-ios' into 'master'
meson: Don't use gnulib for printf on iOS Closes #1868 See merge request GNOME/glib!1607
This commit is contained in:
commit
d7e0fde3ca
@ -906,6 +906,15 @@ if host_system == 'windows' and (cc.get_id() == 'msvc' or cc.get_id() == 'clang-
|
||||
glib_conf.set('HAVE_C99_SNPRINTF', false)
|
||||
glib_conf.set('HAVE_C99_VSNPRINTF', false)
|
||||
glib_conf.set('HAVE_UNIX98_PRINTF', false)
|
||||
elif not cc_can_run and host_system in ['ios', 'darwin']
|
||||
# All these are true when compiling natively on macOS, so we should use good
|
||||
# defaults when building for iOS and tvOS.
|
||||
glib_conf.set('HAVE_C99_SNPRINTF', true)
|
||||
glib_conf.set('HAVE_C99_VSNPRINTF', true)
|
||||
glib_conf.set('HAVE_UNIX98_PRINTF', true)
|
||||
have_good_vsnprintf = true
|
||||
have_good_snprintf = true
|
||||
have_good_printf = true
|
||||
else
|
||||
vsnprintf_c99_test_code = '''
|
||||
#include <stdio.h>
|
||||
|
Loading…
Reference in New Issue
Block a user