diff options
author | Руслан Ижбулатов <lrn1986@gmail.com> | 2019-03-16 10:32:05 +0000 |
---|---|---|
committer | Tomas Popela <tpopela@redhat.com> | 2019-03-18 06:32:08 +0000 |
commit | 050f8e29745ac7fe4238820c7a35e803668674ad (patch) | |
tree | 7b5691911177d06d0c00113b8e1a1bf5ddcdf95f | |
parent | f426de737a6d8815098940d3bf839bb7aaa575e8 (diff) | |
download | libsoup-050f8e29745ac7fe4238820c7a35e803668674ad.tar.gz |
buildsystem: use MinGW ANSI STDIO when possible
Fixes the following error:
libsoup-2.66.0/libsoup/soup-auth-ntlm.c:815:23: error: unknown conversion type character 'h' in format [-Werror=format=]
sscanf(hex_pos, "%2hhx", &hmac[count]);
^
-rw-r--r-- | meson.build | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meson.build b/meson.build index e4c5d755..4448b93c 100644 --- a/meson.build +++ b/meson.build @@ -57,6 +57,11 @@ else common_flags += cc.get_supported_arguments(test_cflags) endif +if cc.get_id() != 'msvc' and host_system == 'windows' + # For "%2hhx" sscanf format and the like + add_project_arguments('-D__USE_MINGW_ANSI_STDIO=1', language : 'c') +endif + add_project_arguments(common_flags, language : 'c') glib_required_version = '>= 2.38' |