[libsoup] buildsystem: use MinGW ANSI STDIO when possible
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] buildsystem: use MinGW ANSI STDIO when possible
- Date: Mon, 18 Mar 2019 06:33:18 +0000 (UTC)
commit 050f8e29745ac7fe4238820c7a35e803668674ad
Author: Руслан Ижбулатов <lrn1986 gmail com>
Date: Sat Mar 16 10:32:05 2019 +0000
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]);
^
meson.build | 5 +++++
1 file changed, 5 insertions(+)
---
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'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]