summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2021-05-01 16:58:15 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2021-05-01 16:58:15 +0100
commitbfd1602db9fd0d23074ef4d1628de66d70241c3b (patch)
tree775e14afb6494f4036700ee806f66d2c792c8f76 /util
parent833630979404faae2bd99c59e4e5739e675917f0 (diff)
downloadcairo-bfd1602db9fd0d23074ef4d1628de66d70241c3b.tar.gz
Remove stray _GNU_SOURCE definitions
We define _GNU_SOURCE globally in both the Autotools build, through the use of the AC_USE_SYSTEM_EXTENSIONS macro; and in the Meson build, with add_project_arguments().
Diffstat (limited to 'util')
-rw-r--r--util/cairo-fdr/fdr.c2
-rw-r--r--util/cairo-sphinx/fdr.c2
-rw-r--r--util/cairo-trace/lookup-symbol.c2
-rw-r--r--util/cairo-trace/trace.c2
-rw-r--r--util/show-contour.c3
-rw-r--r--util/show-edges.c3
-rw-r--r--util/show-events.c3
-rw-r--r--util/show-polygon.c3
-rw-r--r--util/show-traps.c3
9 files changed, 10 insertions, 13 deletions
diff --git a/util/cairo-fdr/fdr.c b/util/cairo-fdr/fdr.c
index 08d9c0113..fa64254b1 100644
--- a/util/cairo-fdr/fdr.c
+++ b/util/cairo-fdr/fdr.c
@@ -16,8 +16,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#define _GNU_SOURCE
-
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
diff --git a/util/cairo-sphinx/fdr.c b/util/cairo-sphinx/fdr.c
index aeda89bcd..5c08953b5 100644
--- a/util/cairo-sphinx/fdr.c
+++ b/util/cairo-sphinx/fdr.c
@@ -16,8 +16,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#define _GNU_SOURCE
-
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
diff --git a/util/cairo-trace/lookup-symbol.c b/util/cairo-trace/lookup-symbol.c
index 9af0b5944..a670f4556 100644
--- a/util/cairo-trace/lookup-symbol.c
+++ b/util/cairo-trace/lookup-symbol.c
@@ -45,8 +45,6 @@
This file was part of GNU Binutils.
*/
-#define _GNU_SOURCE
-
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
diff --git a/util/cairo-trace/trace.c b/util/cairo-trace/trace.c
index 26ed2e506..931e775f8 100644
--- a/util/cairo-trace/trace.c
+++ b/util/cairo-trace/trace.c
@@ -16,8 +16,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#define _GNU_SOURCE
-
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
diff --git a/util/show-contour.c b/util/show-contour.c
index f3fa1babf..e09f6315f 100644
--- a/util/show-contour.c
+++ b/util/show-contour.c
@@ -1,4 +1,5 @@
-#define _GNU_SOURCE
+#include "config.h"
+
#include <gtk/gtk.h>
#include <stdlib.h>
#include <stdio.h>
diff --git a/util/show-edges.c b/util/show-edges.c
index a85ad5f7e..c27900333 100644
--- a/util/show-edges.c
+++ b/util/show-edges.c
@@ -1,4 +1,5 @@
-#define _GNU_SOURCE
+#include "config.h"
+
#include <gtk/gtk.h>
#include <stdlib.h>
#include <stdio.h>
diff --git a/util/show-events.c b/util/show-events.c
index 8bff3efc4..da824dd9d 100644
--- a/util/show-events.c
+++ b/util/show-events.c
@@ -1,4 +1,5 @@
-#define _GNU_SOURCE
+#include "config.h"
+
#include <gtk/gtk.h>
#include <stdlib.h>
#include <stdio.h>
diff --git a/util/show-polygon.c b/util/show-polygon.c
index 35c0014d1..1157427f7 100644
--- a/util/show-polygon.c
+++ b/util/show-polygon.c
@@ -1,4 +1,5 @@
-#define _GNU_SOURCE
+#include "config.h"
+
#include <gtk/gtk.h>
#include <stdlib.h>
#include <stdio.h>
diff --git a/util/show-traps.c b/util/show-traps.c
index f46c8b009..dc1093060 100644
--- a/util/show-traps.c
+++ b/util/show-traps.c
@@ -1,4 +1,5 @@
-#define _GNU_SOURCE
+#include "config.h"
+
#include <gtk/gtk.h>
#include <stdlib.h>
#include <stdio.h>