diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2021-05-01 16:58:15 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2021-05-01 16:58:15 +0100 |
commit | bfd1602db9fd0d23074ef4d1628de66d70241c3b (patch) | |
tree | 775e14afb6494f4036700ee806f66d2c792c8f76 /perf | |
parent | 833630979404faae2bd99c59e4e5739e675917f0 (diff) | |
download | cairo-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 'perf')
-rw-r--r-- | perf/cairo-analyse-trace.c | 2 | ||||
-rw-r--r-- | perf/cairo-perf-micro.c | 2 | ||||
-rw-r--r-- | perf/cairo-perf-report.c | 6 | ||||
-rw-r--r-- | perf/cairo-perf-trace.c | 2 |
4 files changed, 5 insertions, 7 deletions
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 <chris@chris-wilson.co.uk> */ -#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 <cworth@cworth.org> */ -#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 <cworth@cworth.org> */ +#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 <stdio.h> #include <stdlib.h> #include <string.h> 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 <chris@chris-wilson.co.uk> */ -#define _GNU_SOURCE 1 /* for sched_getaffinity() and getline() */ +#include "config.h" #include "cairo-missing.h" #include "cairo-perf.h" |