diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2017-03-11 22:06:07 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2017-05-03 15:10:53 +0100 |
commit | a223294605b037e114cbcf0827e941d7af991d40 (patch) | |
tree | 199a346af0708b74c87dbc7a9a96c6a3d5c77380 /meson.build | |
parent | e675675b78bf88d4bfa8721e62b625b701c150d8 (diff) | |
download | gtk+-a223294605b037e114cbcf0827e941d7af991d40.tar.gz |
meson: set _GNU_SOURCE project wide
Easier, also means we don't have to define it for
checks. that will only succeed with it defind.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 04a1f5e292..196e3e155e 100644 --- a/meson.build +++ b/meson.build @@ -19,6 +19,8 @@ gtk_micro_version = gtk_version[2].to_int() gtk_interface_age = 0 add_global_arguments('-DGTK_VERSION="' + meson.project_version() + '"', language: 'c') +add_project_arguments('-D_GNU_SOURCE', language : 'c') + # Define a string for the earliest version that this release has # backwards binary compatibility with for all interfaces a module # might. Unless we add module-only API with lower stability |