Add strings.h

Eric Blake eblake@redhat.com
Wed Dec 8 02:39:00 GMT 2010


On 12/07/2010 10:32 AM, Jeff Johnston wrote:
>> I suppose that would work as well, although my change is a one-liner.
>> It's just that I don't have maintainer rights to approve your patch
>> (although it does look okay to me, modulo the one #if line condition);
>> so it's now time for Jeff or Corinna to speak up.
>>
> 
> Ralf's initial patch has just been applied.

Any objections to pushing this?

2010-12-07  Eric Blake  <eblake@redhat.com>

	* libc/include/strings.h: Don't declare removed functions when
	requesting POSIX 2008 compliance.

diff --git a/newlib/libc/include/strings.h b/newlib/libc/include/strings.h
index 1d5bda6..5ed846f 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


-- 
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://sourceware.org/pipermail/newlib/attachments/20101208/ee988d0a/attachment.sig>


More information about the Newlib mailing list