[gtk+/wip/meson: 55/136] meson: set _GNU_SOURCE project wide
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/meson: 55/136] meson: set _GNU_SOURCE project wide
- Date: Fri, 28 Apr 2017 14:31:36 +0000 (UTC)
commit 496a5960a796a49e589785ef99a3d20a54f73744
Author: Tim-Philipp Müller <tim centricular com>
Date: Sat Mar 11 22:06:07 2017 +0000
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.
meson.build | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/meson.build b/meson.build
index 04a1f5e..196e3e1 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]