Pass -D_GNU_SOURCE instead of defining it in source

This commit is contained in:
Jonas Ådahl 2018-07-12 17:06:27 +02:00
parent 176e6fcded
commit bc32655c28
10 changed files with 2 additions and 19 deletions

View File

@ -16,6 +16,7 @@ AM_CPPFLAGS = \
-DCOGL_ENABLE_MUTTER_API \ -DCOGL_ENABLE_MUTTER_API \
-DCLUTTER_DISABLE_DEPRECATION_WARNINGS \ -DCLUTTER_DISABLE_DEPRECATION_WARNINGS \
-DCOGL_DISABLE_DEPRECATION_WARNINGS \ -DCOGL_DISABLE_DEPRECATION_WARNINGS \
-D_GNU_SOURCE \
$(MUTTER_CFLAGS) \ $(MUTTER_CFLAGS) \
$(MUTTER_NATIVE_BACKEND_CFLAGS) \ $(MUTTER_NATIVE_BACKEND_CFLAGS) \
-I$(builddir) \ -I$(builddir) \
@ -645,7 +646,7 @@ Meta_@LIBMUTTER_API_VERSION@_gir_INCLUDES = \
xfixes-4.0 \ xfixes-4.0 \
$(NULL) $(NULL)
Meta_@LIBMUTTER_API_VERSION@_gir_EXPORT_PACKAGES = libmutter-$(LIBMUTTER_API_VERSION) Meta_@LIBMUTTER_API_VERSION@_gir_EXPORT_PACKAGES = libmutter-$(LIBMUTTER_API_VERSION)
Meta_@LIBMUTTER_API_VERSION@_gir_CFLAGS = $(AM_CPPFLAGS) Meta_@LIBMUTTER_API_VERSION@_gir_CFLAGS = $(AM_CPPFLAGS) -U_GNU_SOURCE
Meta_@LIBMUTTER_API_VERSION@_gir_LIBS = libmutter-$(LIBMUTTER_API_VERSION).la Meta_@LIBMUTTER_API_VERSION@_gir_LIBS = libmutter-$(LIBMUTTER_API_VERSION).la
Meta_@LIBMUTTER_API_VERSION@_gir_FILES = \ Meta_@LIBMUTTER_API_VERSION@_gir_FILES = \
$(libmutterinclude_base_headers) \ $(libmutterinclude_base_headers) \

View File

@ -20,8 +20,6 @@
* *
*/ */
#define _GNU_SOURCE
#include "config.h" #include "config.h"
#include "backends/meta-remote-desktop.h" #include "backends/meta-remote-desktop.h"

View File

@ -21,8 +21,6 @@
* Author: Carlos Garnacho <carlosg@gnome.org> * Author: Carlos Garnacho <carlosg@gnome.org>
*/ */
#define _GNU_SOURCE
#include "config.h" #include "config.h"
#include <glib.h> #include <glib.h>

View File

@ -21,8 +21,6 @@
* Author: Carlos Garnacho <carlosg@gnome.org> * Author: Carlos Garnacho <carlosg@gnome.org>
*/ */
#define _GNU_SOURCE
#include "config.h" #include "config.h"
#include <wayland-server.h> #include <wayland-server.h>

View File

@ -21,8 +21,6 @@
* Author: Carlos Garnacho <carlosg@gnome.org> * Author: Carlos Garnacho <carlosg@gnome.org>
*/ */
#define _GNU_SOURCE
#include "config.h" #include "config.h"
#include "wayland/meta-wayland-tablet-pad-ring.h" #include "wayland/meta-wayland-tablet-pad-ring.h"

View File

@ -21,8 +21,6 @@
* Author: Carlos Garnacho <carlosg@gnome.org> * Author: Carlos Garnacho <carlosg@gnome.org>
*/ */
#define _GNU_SOURCE
#include "config.h" #include "config.h"
#include "wayland/meta-wayland-tablet-pad-strip.h" #include "wayland/meta-wayland-tablet-pad-strip.h"

View File

@ -21,8 +21,6 @@
* Author: Carlos Garnacho <carlosg@gnome.org> * Author: Carlos Garnacho <carlosg@gnome.org>
*/ */
#define _GNU_SOURCE
#include "config.h" #include "config.h"
#include <glib.h> #include <glib.h>

View File

@ -21,8 +21,6 @@
* Author: Carlos Garnacho <carlosg@gnome.org> * Author: Carlos Garnacho <carlosg@gnome.org>
*/ */
#define _GNU_SOURCE
#include "config.h" #include "config.h"
#include <glib.h> #include <glib.h>

View File

@ -21,8 +21,6 @@
* Author: Carlos Garnacho <carlosg@gnome.org> * Author: Carlos Garnacho <carlosg@gnome.org>
*/ */
#define _GNU_SOURCE
#include "config.h" #include "config.h"
#include "wayland/meta-wayland-tablet-tool.h" #include "wayland/meta-wayland-tablet-tool.h"

View File

@ -21,8 +21,6 @@
* Author: Carlos Garnacho <carlosg@gnome.org> * Author: Carlos Garnacho <carlosg@gnome.org>
*/ */
#define _GNU_SOURCE
#include "config.h" #include "config.h"
#include "wayland/meta-wayland-tablet.h" #include "wayland/meta-wayland-tablet.h"