Add strings.h

Eric Blake eblake@redhat.com
Tue Dec 7 17:20:00 GMT 2010


On 12/07/2010 09:51 AM, Ralf Corsepius wrote:
> 
> Next version of the patch enclosed below, this time with all
> TBD's/ifdefs removed.

Would you mind updating the patch so that if _POSIX_VERSION is defined
and >= 200809L, then index() and friends are _not_ declared?  That is:

#if !defined __STRICT_ANSI && _POSIX_VERSION < 200809L

I don't mind them being declared when using all available extensions,
but I don't want them polluting the namespace when trying to compile a
POSIX 2008 conforming application (index is the worst offender, as I
like using that identifier in my code for other purposes).

-- 
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/20101207/4659a0cd/attachment.sig>


More information about the Newlib mailing list