From bfd1602db9fd0d23074ef4d1628de66d70241c3b Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sat, 1 May 2021 16:58:15 +0100 Subject: 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(). --- perf/cairo-analyse-trace.c | 2 +- perf/cairo-perf-micro.c | 2 +- perf/cairo-perf-report.c | 6 ++---- perf/cairo-perf-trace.c | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-) (limited to 'perf') diff --git a/perf/cairo-analyse-trace.c b/perf/cairo-analyse-trace.c index 95b7e6664..6dbe7cf4b 100644 --- a/perf/cairo-analyse-trace.c +++ b/perf/cairo-analyse-trace.c @@ -29,7 +29,7 @@ * Chris Wilson */ -#define _GNU_SOURCE 1 /* for sched_getaffinity() and getline() */ +#include "config.h" #include "cairo-perf.h" #include "cairo-stats.h" diff --git a/perf/cairo-perf-micro.c b/perf/cairo-perf-micro.c index d8745c205..618272ec5 100644 --- a/perf/cairo-perf-micro.c +++ b/perf/cairo-perf-micro.c @@ -26,7 +26,7 @@ * Carl Worth */ -#define _GNU_SOURCE 1 /* for sched_getaffinity() */ +#include "config.h" #include "cairo-perf.h" #include "cairo-stats.h" diff --git a/perf/cairo-perf-report.c b/perf/cairo-perf-report.c index 2325f4793..5a1e25441 100644 --- a/perf/cairo-perf-report.c +++ b/perf/cairo-perf-report.c @@ -25,16 +25,14 @@ * Authors: Carl Worth */ +#include "config.h" + #define _GETDELIM 1/* for getline() on AIX */ #include "cairo-perf.h" #include "cairo-missing.h" #include "cairo-stats.h" -/* We use _GNU_SOURCE for getline and strndup if available. */ -#ifndef _GNU_SOURCE -# define _GNU_SOURCE -#endif #include #include #include diff --git a/perf/cairo-perf-trace.c b/perf/cairo-perf-trace.c index 7823089ae..cfabcaad0 100644 --- a/perf/cairo-perf-trace.c +++ b/perf/cairo-perf-trace.c @@ -28,7 +28,7 @@ * Chris Wilson */ -#define _GNU_SOURCE 1 /* for sched_getaffinity() and getline() */ +#include "config.h" #include "cairo-missing.h" #include "cairo-perf.h" -- cgit v1.2.1