[PATCH] Fix declaration guard for strcasecmp()
Eric Blake
eblake@redhat.com
Wed Oct 29 18:58:00 GMT 2014
On 10/29/2014 12:54 PM, Jon TURNEY wrote:
>
> Based on [1], I think that strcasecmp() should be declared by string.h
> if _BSD_VISIBLE or _POSIX_VISIBLE, the same as strncasecmp() a few lines
> further down.
POSIX doesn't require strcasecmp or strncasecmp to be visible in
<string.h> (they are only mandatory in <strings.h>). But it also
permits <string.h> to declare anything it wants in the str* namespace,
so this is still standards compliant, and closer to what lazy
programmers have gotten used to with glibc.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 539 bytes
Desc: OpenPGP digital signature
URL: <http://sourceware.org/pipermail/newlib/attachments/20141029/a47d7ff4/attachment.sig>
More information about the Newlib
mailing list