From b7c27035f49cdfe6cd1f71011b786002d4b8fc9b Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Wed, 9 Aug 2017 15:47:12 +0800 Subject: meson: Force-include msvc_recommended_pragmas.h on MSVC Like the rest of the GTK+ stack, force include GLib's msvc_recommended_pragmas.h as we have done in the Visual Studio projects so that we can silence some unwanted noise, as well as finding out potential issues in the code. https://bugzilla.gnome.org/show_bug.cgi?id=785802 --- meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meson.build b/meson.build index 44806d0..78dc45f 100644 --- a/meson.build +++ b/meson.build @@ -40,6 +40,10 @@ atk_libversion = '@0@.@1@.@2@'.format(atk_soversion, (atk_binary_age - atk_inter add_project_arguments([ '-DG_DISABLE_SINGLE_INCLUDES', '-DATK_DISABLE_SINGLE_INCLUDES' ], language: 'c') +if cc.get_id() == 'msvc' + add_project_arguments([ '-FImsvc_recommended_pragmas.h' ], language: 'c') +endif + # Compiler and linker flags common_cflags = [] common_ldflags = [] -- cgit v1.2.1