*: stop defining _GNU_SOURCE in source files, it's in CFLAGS anyway

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2010-06-18 15:15:24 +02:00
parent 7df28bbb8f
commit b87c17cd16
5 changed files with 0 additions and 24 deletions

View File

@ -29,10 +29,6 @@
* Licensed under GPLv2 or later, see file License in this tarball for details. * Licensed under GPLv2 or later, see file License in this tarball for details.
*/ */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1 /* get strnlen() */
#endif
#include "e2fsck.h" /*Put all of our defines here to clean things up*/ #include "e2fsck.h" /*Put all of our defines here to clean things up*/
#define _(x) x #define _(x) x

View File

@ -9,11 +9,6 @@
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details. * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/ */
/* for getline() [GNUism]
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
*/
#include "libbb.h" #include "libbb.h"
/* This function reads an entire line from a text file, up to a newline /* This function reads an entire line from a text file, up to a newline

View File

@ -8,8 +8,6 @@
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details. * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/ */
#undef _GNU_SOURCE
#define _GNU_SOURCE
#include "libbb.h" #include "libbb.h"
#include "modutils.h" #include "modutils.h"
#include <sys/utsname.h> /* uname() */ #include <sys/utsname.h> /* uname() */

View File

@ -36,12 +36,6 @@
#define JOBS ENABLE_ASH_JOB_CONTROL #define JOBS ENABLE_ASH_JOB_CONTROL
#if DEBUG
# ifndef _GNU_SOURCE
# define _GNU_SOURCE
# endif
#endif
#include "busybox.h" /* for applet_names */ #include "busybox.h" /* for applet_names */
#include <paths.h> #include <paths.h>
#include <setjmp.h> #include <setjmp.h>

View File

@ -12,13 +12,6 @@
#include <sys/utsname.h> #include <sys/utsname.h>
#include "rtc_.h" #include "rtc_.h"
#if ENABLE_FEATURE_HWCLOCK_LONG_OPTIONS
# ifndef _GNU_SOURCE
# define _GNU_SOURCE
# endif
#endif
/* diff code is disabled: it's not sys/hw clock diff, it's some useless /* diff code is disabled: it's not sys/hw clock diff, it's some useless
* "time between hwclock was started and we saw CMOS tick" quantity. * "time between hwclock was started and we saw CMOS tick" quantity.
* It's useless since hwclock is started at a random moment, * It's useless since hwclock is started at a random moment,