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().
This commit is contained in:
Emmanuele Bassi 2021-05-01 16:58:15 +01:00
parent 8336309794
commit bfd1602db9
20 changed files with 16 additions and 32 deletions

View file

@ -23,8 +23,6 @@
* Author: Carl D. Worth <cworth@cworth.org>
*/
#define _GNU_SOURCE 1 /* for vasprintf */
#include "cairo-boilerplate.h"
#include "cairo-boilerplate-system.h"

View file

@ -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"

View file

@ -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"

View file

@ -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>

View file

@ -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"

View file

@ -38,8 +38,6 @@
* Adrian Johnson <ajohnson@redneon.com>
*/
#define _GNU_SOURCE 1 /* strtod_l() */
#include "cairoint.h"
#include "cairo-error-private.h"

View file

@ -34,7 +34,6 @@
* Vladimir Vukicevic <vladimir@mozilla.com>
*/
#define _GNU_SOURCE /* required for RTLD_DEFAULT */
#include "cairoint.h"
#include "cairo-quartz-private.h"

View file

@ -52,8 +52,6 @@
* scope of this test.
*/
#define _GNU_SOURCE 1 /* getline() */
#include "cairo-test.h"
#include "buffer-diff.h"

View file

@ -25,8 +25,6 @@
* Chris Wilson <chris@chris-wilson.co.uk>
*/
#define _GNU_SOURCE 1 /* for feenableexcept() et al */
#if HAVE_CONFIG_H
#include "config.h"
#endif

View file

@ -25,8 +25,8 @@
*/
#define _ISOC99_SOURCE /* for INFINITY */
#define _GNU_SOURCE 1 /* for fedisableeexcept() et al */
#include "config.h"
#include "cairo-test.h"
#if !defined(INFINITY)

View file

@ -14,8 +14,6 @@
if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA
*/
#define _GNU_SOURCE
#if HAVE_CONFIG_H
#include "config.h"
#endif

View file

@ -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

View file

@ -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

View file

@ -45,8 +45,6 @@
This file was part of GNU Binutils.
*/
#define _GNU_SOURCE
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

View file

@ -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

View file

@ -1,4 +1,5 @@
#define _GNU_SOURCE
#include "config.h"
#include <gtk/gtk.h>
#include <stdlib.h>
#include <stdio.h>

View file

@ -1,4 +1,5 @@
#define _GNU_SOURCE
#include "config.h"
#include <gtk/gtk.h>
#include <stdlib.h>
#include <stdio.h>

View file

@ -1,4 +1,5 @@
#define _GNU_SOURCE
#include "config.h"
#include <gtk/gtk.h>
#include <stdlib.h>
#include <stdio.h>

View file

@ -1,4 +1,5 @@
#define _GNU_SOURCE
#include "config.h"
#include <gtk/gtk.h>
#include <stdlib.h>
#include <stdio.h>

View file

@ -1,4 +1,5 @@
#define _GNU_SOURCE
#include "config.h"
#include <gtk/gtk.h>
#include <stdlib.h>
#include <stdio.h>