diff options
author | Eric Blake <eblake@redhat.com> | 2010-12-08 02:47:14 +0000 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2010-12-08 02:47:14 +0000 |
commit | 1dfc6c9535d28f8c7abf61502d36aa3b1cbd6f8f (patch) | |
tree | fef4d86dc9e13bddb902681593356997120d2038 /newlib | |
parent | bbb052381b6552c09852402dfefabb5c072b3ae7 (diff) | |
download | cygnal-1dfc6c9535d28f8c7abf61502d36aa3b1cbd6f8f.tar.gz cygnal-1dfc6c9535d28f8c7abf61502d36aa3b1cbd6f8f.tar.bz2 cygnal-1dfc6c9535d28f8c7abf61502d36aa3b1cbd6f8f.zip |
strings.h: avoid namespace pollution
* libc/include/strings.h: Don't declare removed functions when
requesting POSIX 2008 compliance.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/include/strings.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 893db1c12..25d9c5df8 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2010-12-07 Eric Blake <eblake@redhat.com> + + * libc/include/strings.h: Don't declare removed functions when + requesting POSIX 2008 compliance. + 2010-12-07 Jeff Johnston <jjohnstn@redhat.com> * libc/stdlib/strtod.c (_strtod_r): Fix code to handle case whereby diff --git a/newlib/libc/include/strings.h b/newlib/libc/include/strings.h index 1d5bda673..5ed846f5c 100644 --- a/newlib/libc/include/strings.h +++ b/newlib/libc/include/strings.h @@ -15,7 +15,7 @@ _BEGIN_STD_C -#ifndef __STRICT_ANSI__ +#if !defined __STRICT_ANSI__ && _POSIX_VERSION < 200809L /* * Marked LEGACY in Open Group Base Specifications Issue 6/IEEE Std 1003.1-2004 * Removed from Open Group Base Specifications Issue 7/IEEE Std 1003.1-2008 |