From df31d32b411022d130b078de177cfa40b7bf6cde Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sun, 22 Jan 2006 19:35:08 +0000 Subject: Enable _GNU_SOURCE build wide, trying to get consistent interfaces, else IMA is a useless attempt --- libc/string/__xpg_strerror_r.c | 3 +-- libc/string/_string.h | 1 - libc/string/generic/memmem.c | 1 - libc/string/generic/mempcpy.c | 1 - libc/string/generic/memrchr.c | 1 - libc/string/generic/rawmemchr.c | 1 - libc/string/generic/strchrnul.c | 1 - libc/string/generic/strnlen.c | 1 - libc/string/generic/strtok_r.c | 1 - libc/string/i386/strnlen.c | 1 - libc/string/psignal.c | 1 - libc/string/strsignal.c | 1 - 12 files changed, 1 insertion(+), 13 deletions(-) (limited to 'libc/string') diff --git a/libc/string/__xpg_strerror_r.c b/libc/string/__xpg_strerror_r.c index 6536995e6..d146d35ac 100644 --- a/libc/string/__xpg_strerror_r.c +++ b/libc/string/__xpg_strerror_r.c @@ -1,11 +1,10 @@ /* * Copyright (C) 2002 Manuel Novoa III - * Copyright (C) 2000-2005 Erik Andersen + * Copyright (C) 2000-2006 Erik Andersen * * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. */ -#define _GNU_SOURCE #include #include #include diff --git a/libc/string/_string.h b/libc/string/_string.h index 4ecde30a7..67f17b1ff 100644 --- a/libc/string/_string.h +++ b/libc/string/_string.h @@ -8,7 +8,6 @@ #ifndef __STRING_H #define __STRING_H -#define _GNU_SOURCE #include #include #include diff --git a/libc/string/generic/memmem.c b/libc/string/generic/memmem.c index 386cb5e02..c2e8547be 100644 --- a/libc/string/generic/memmem.c +++ b/libc/string/generic/memmem.c @@ -16,7 +16,6 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#define _GNU_SOURCE #include #include diff --git a/libc/string/generic/mempcpy.c b/libc/string/generic/mempcpy.c index ac91541a5..7c251914d 100644 --- a/libc/string/generic/mempcpy.c +++ b/libc/string/generic/mempcpy.c @@ -5,7 +5,6 @@ /* Ditch the glibc version and just wrap memcpy. */ -#define _GNU_SOURCE #include libc_hidden_proto(mempcpy) diff --git a/libc/string/generic/memrchr.c b/libc/string/generic/memrchr.c index 7cb5b2246..f63efa46b 100644 --- a/libc/string/generic/memrchr.c +++ b/libc/string/generic/memrchr.c @@ -22,7 +22,6 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#define _GNU_SOURCE #include #include #include diff --git a/libc/string/generic/rawmemchr.c b/libc/string/generic/rawmemchr.c index 3c1cc01de..85fc09836 100644 --- a/libc/string/generic/rawmemchr.c +++ b/libc/string/generic/rawmemchr.c @@ -21,7 +21,6 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#define _GNU_SOURCE #include #include #include diff --git a/libc/string/generic/strchrnul.c b/libc/string/generic/strchrnul.c index 3616341a7..e699a6dfa 100644 --- a/libc/string/generic/strchrnul.c +++ b/libc/string/generic/strchrnul.c @@ -21,7 +21,6 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#define _GNU_SOURCE #include #include diff --git a/libc/string/generic/strnlen.c b/libc/string/generic/strnlen.c index c5da906ef..31b5ba8e0 100644 --- a/libc/string/generic/strnlen.c +++ b/libc/string/generic/strnlen.c @@ -21,7 +21,6 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#define _GNU_SOURCE #include #include diff --git a/libc/string/generic/strtok_r.c b/libc/string/generic/strtok_r.c index 566538fd5..0ab18b35e 100644 --- a/libc/string/generic/strtok_r.c +++ b/libc/string/generic/strtok_r.c @@ -17,7 +17,6 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#define _GNU_SOURCE #include libc_hidden_proto(strtok_r) diff --git a/libc/string/i386/strnlen.c b/libc/string/i386/strnlen.c index 6b565dbd8..af512f10a 100644 --- a/libc/string/i386/strnlen.c +++ b/libc/string/i386/strnlen.c @@ -30,7 +30,6 @@ * -Erik */ -#define _GNU_SOURCE #include libc_hidden_proto(strnlen) diff --git a/libc/string/psignal.c b/libc/string/psignal.c index 64b52c98b..c47277701 100644 --- a/libc/string/psignal.c +++ b/libc/string/psignal.c @@ -5,7 +5,6 @@ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. */ -#define _GNU_SOURCE #include #include #include diff --git a/libc/string/strsignal.c b/libc/string/strsignal.c index bb5ada716..f8b6a9e9f 100644 --- a/libc/string/strsignal.c +++ b/libc/string/strsignal.c @@ -13,7 +13,6 @@ /* TODO: make a threadsafe version? */ -#define _GNU_SOURCE #include #include #include -- cgit v1.2.3