[mutter] configure.ac: Add AC_GNU_SOURCE
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] configure.ac: Add AC_GNU_SOURCE
- Date: Wed, 20 Jul 2016 06:25:52 +0000 (UTC)
commit 95a68854ad90e12bf7d7d7a054956caa7d883e52
Author: Jonas Ådahl <jadahl gmail com>
Date: Sat May 7 18:26:28 2016 +0800
configure.ac: Add AC_GNU_SOURCE
We define it here and there already, and if we are to include private
cogl files, we need it in more places. Lets just add it everywhere.
https://bugzilla.gnome.org/show_bug.cgi?id=768976
configure.ac | 2 ++
src/core/keybindings.c | 2 --
src/core/main.c | 1 -
src/core/util.c | 1 -
src/wayland/meta-wayland-keyboard.c | 2 --
src/wayland/meta-wayland-pointer-gesture-pinch.c | 2 --
src/wayland/meta-wayland-pointer-gesture-swipe.c | 2 --
src/wayland/meta-wayland-pointer-gestures.c | 2 --
src/wayland/meta-wayland-touch.c | 2 --
src/wayland/meta-xwayland-selection.c | 1 -
src/x11/window-props.c | 1 -
11 files changed, 2 insertions(+), 16 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 3d83443..7199094 100644
--- a/configure.ac
+++ b/configure.ac
@@ -22,6 +22,8 @@ AM_INIT_AUTOMAKE([1.11 foreign no-dist-gzip dist-xz tar-ustar subdir-objects])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])],)
AM_MAINTAINER_MODE([enable])
+AC_GNU_SOURCE
+
MUTTER_MAJOR_VERSION=mutter_major_version
MUTTER_MINOR_VERSION=mutter_minor_version
MUTTER_MICRO_VERSION=mutter_micro_version
diff --git a/src/core/keybindings.c b/src/core/keybindings.c
index ed34aea..14d134f 100644
--- a/src/core/keybindings.c
+++ b/src/core/keybindings.c
@@ -27,8 +27,6 @@
* @Short_Description: Key bindings
*/
-#define _GNU_SOURCE
-
#include <config.h>
#include "keybindings-private.h"
#include "workspace-private.h"
diff --git a/src/core/main.c b/src/core/main.c
index c7ce17d..c0a7aa5 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -41,7 +41,6 @@
* to investigate, read main(), meta_display_open(), and event_callback().
*/
-#define _GNU_SOURCE
#define _XOPEN_SOURCE /* for putenv() and some signal-related functions */
#include <config.h>
diff --git a/src/core/util.c b/src/core/util.c
index 22d4674..a3a799c 100644
--- a/src/core/util.c
+++ b/src/core/util.c
@@ -24,7 +24,6 @@
* @short_description: Miscellaneous utility functions
*/
-#define _GNU_SOURCE
#define _POSIX_C_SOURCE 200112L /* for fdopen() */
#include <config.h>
diff --git a/src/wayland/meta-wayland-keyboard.c b/src/wayland/meta-wayland-keyboard.c
index 003e483..1d3c29b 100644
--- a/src/wayland/meta-wayland-keyboard.c
+++ b/src/wayland/meta-wayland-keyboard.c
@@ -45,8 +45,6 @@
/* The file is based on src/input.c from Weston */
-#define _GNU_SOURCE
-
#include "config.h"
#include <glib.h>
diff --git a/src/wayland/meta-wayland-pointer-gesture-pinch.c
b/src/wayland/meta-wayland-pointer-gesture-pinch.c
index fa13719..80bc78f 100644
--- a/src/wayland/meta-wayland-pointer-gesture-pinch.c
+++ b/src/wayland/meta-wayland-pointer-gesture-pinch.c
@@ -21,8 +21,6 @@
* Author: Carlos Garnacho <carlosg gnome org>
*/
-#define _GNU_SOURCE
-
#include "config.h"
#include <glib.h>
diff --git a/src/wayland/meta-wayland-pointer-gesture-swipe.c
b/src/wayland/meta-wayland-pointer-gesture-swipe.c
index a192128..8762cc5 100644
--- a/src/wayland/meta-wayland-pointer-gesture-swipe.c
+++ b/src/wayland/meta-wayland-pointer-gesture-swipe.c
@@ -21,8 +21,6 @@
* Author: Carlos Garnacho <carlosg gnome org>
*/
-#define _GNU_SOURCE
-
#include "config.h"
#include <glib.h>
diff --git a/src/wayland/meta-wayland-pointer-gestures.c b/src/wayland/meta-wayland-pointer-gestures.c
index 82cfb43..494fca2 100644
--- a/src/wayland/meta-wayland-pointer-gestures.c
+++ b/src/wayland/meta-wayland-pointer-gestures.c
@@ -21,8 +21,6 @@
* Author: Carlos Garnacho <carlosg gnome org>
*/
-#define _GNU_SOURCE
-
#include "config.h"
#include <glib.h>
diff --git a/src/wayland/meta-wayland-touch.c b/src/wayland/meta-wayland-touch.c
index 2ec9dce..52c3f64 100644
--- a/src/wayland/meta-wayland-touch.c
+++ b/src/wayland/meta-wayland-touch.c
@@ -21,8 +21,6 @@
* Author: Carlos Garnacho <carlosg gnome org>
*/
-#define _GNU_SOURCE
-
#include "config.h"
#include <glib.h>
diff --git a/src/wayland/meta-xwayland-selection.c b/src/wayland/meta-xwayland-selection.c
index b78badb..2528d8a 100644
--- a/src/wayland/meta-xwayland-selection.c
+++ b/src/wayland/meta-xwayland-selection.c
@@ -24,7 +24,6 @@
#include "config.h"
-#define _GNU_SOURCE
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
diff --git a/src/x11/window-props.c b/src/x11/window-props.c
index 85c03c5..3dc4af8 100644
--- a/src/x11/window-props.c
+++ b/src/x11/window-props.c
@@ -34,7 +34,6 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#define _GNU_SOURCE
#define _XOPEN_SOURCE 500 /* for gethostname() */
#include <config.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]