summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gmail.com>2022-08-25 15:45:46 +0000
committerEmmanuele Bassi <ebassi@gmail.com>2022-08-25 15:45:46 +0000
commit2779b9324d0a508c0678db39eaf969e6694d7710 (patch)
tree15cd46012a1e8d4306ee4aa3d0507edd998496aa /meson.build
parent5b477d43a80bc7ea0d04b5d7a8f5d81e9477ddb2 (diff)
parent1f87d51414bde2a7a7951af60caff1557c0862ee (diff)
downloadclutter-2779b9324d0a508c0678db39eaf969e6694d7710.tar.gz
Merge branch 'windows-fixes' into 'master'HEADmaster
Fix some Windows items See merge request GNOME/clutter!16
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build8
1 files changed, 7 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index e4051877a..4cb771aaa 100644
--- a/meson.build
+++ b/meson.build
@@ -28,7 +28,13 @@ clutter_libversion = '@0@.@1@.@2@'.format(clutter_so_age, clutter_binary_age, cl
cc = meson.get_compiler('c')
config_h = configuration_data()
-add_project_arguments([ '-D_GNU_SOURCE', '-DHAVE_CONFIG_H' ], language: 'c')
+add_project_arguments(['-DHAVE_CONFIG_H' ], language: 'c')
+
+if cc.get_id() == 'msvc'
+ add_project_arguments([ '-FImsvc_recommended_pragmas.h' ], language: 'c')
+else
+ add_project_arguments([ '-D_GNU_SOURCE' ], language: 'c')
+endif
# Paths
clutter_prefix = get_option('prefix')