diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gobject/src/meson.build | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/gobject/src/meson.build b/tests/gobject/src/meson.build index 155f5af..6c46096 100644 --- a/tests/gobject/src/meson.build +++ b/tests/gobject/src/meson.build @@ -16,9 +16,12 @@ gobject_test_deps = [ ] extra_cflags = [] -if cc.get_id() == 'msvc' - extra_cflags += '/FImsvc_recommended_pragmas.h' - extra_cflags += cc.get_supported_arguments(['/utf-8']) +if cc.get_argument_syntax() == 'msvc' + if cc.get_id() == 'msvc' + extra_cflags += '/FImsvc_recommended_pragmas.h' + extra_cflags += cc.get_supported_arguments(['/utf-8']) + endif + extra_cflags += '/D_GTKDOC_TESTER_API=__declspec(dllexport)' endif gobject_test_lib = shared_library( |