From: Chun-wei Fan Date: Wed, 9 Aug 2017 07:47:12 +0000 (+0800) Subject: meson: Force-include msvc_recommended_pragmas.h on MSVC X-Git-Tag: upstream/2.28.1~14 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Fatk.git;a=commitdiff_plain;h=b7c27035f49cdfe6cd1f71011b786002d4b8fc9b 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 --- 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 = []