meson: Define _GNU_SOURCE as a project argument

We use it pretty much everywhere in order to get feature detection, and
that's also what the AC_USE_SYSTEM_EXTENSIONS m4 macro defines in the
Autotools build.

https://bugzilla.gnome.org/show_bug.cgi?id=785955
This commit is contained in:
Emmanuele Bassi 2017-08-09 21:29:13 +01:00
parent 4860511d8d
commit 1a755a63e1

View File

@ -58,6 +58,8 @@ glib_giomodulesdir = join_paths(glib_libdir, 'gio', 'modules')
glib_pkgconfigreldir = join_paths(glib_libdir, 'pkgconfig')
add_project_arguments('-D_GNU_SOURCE', language: 'c')
########################
# Configuration begins #
########################