This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Add strings.h


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

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]