summaryrefslogtreecommitdiff
path: root/libc/string
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-22 19:35:08 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-22 19:35:08 +0000
commitdf31d32b411022d130b078de177cfa40b7bf6cde (patch)
tree0604126022fcad298f377155a756b42e28882177 /libc/string
parentd98307c5af70386c4480deff87c7c9921d801c7c (diff)
Enable _GNU_SOURCE build wide, trying to get consistent interfaces, else IMA is a useless attempt
Diffstat (limited to 'libc/string')
-rw-r--r--libc/string/__xpg_strerror_r.c3
-rw-r--r--libc/string/_string.h1
-rw-r--r--libc/string/generic/memmem.c1
-rw-r--r--libc/string/generic/mempcpy.c1
-rw-r--r--libc/string/generic/memrchr.c1
-rw-r--r--libc/string/generic/rawmemchr.c1
-rw-r--r--libc/string/generic/strchrnul.c1
-rw-r--r--libc/string/generic/strnlen.c1
-rw-r--r--libc/string/generic/strtok_r.c1
-rw-r--r--libc/string/i386/strnlen.c1
-rw-r--r--libc/string/psignal.c1
-rw-r--r--libc/string/strsignal.c1
12 files changed, 1 insertions, 13 deletions
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 <andersen@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
*
* Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
*/
-#define _GNU_SOURCE
#include <features.h>
#include <errno.h>
#include <string.h>
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 <features.h>
#include <string.h>
#include <limits.h>
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 <string.h>
#include <stddef.h>
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 <string.h>
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 <string.h>
#include <stdlib.h>
#include <limits.h>
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 <string.h>
#include <stdlib.h>
#include <limits.h>
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 <string.h>
#include <stdlib.h>
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 <string.h>
#include <stdlib.h>
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 <string.h>
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 <string.h>
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 <features.h>
#include <stdio.h>
#include <string.h>
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 <features.h>
#include <string.h>
#include <bits/uClibc_uintmaxtostr.h>