[PATCH] Fix declaration guard for strcasecmp()
Wed Oct 29 18:58:00 GMT 2014
On 10/29/2014 12:54 PM, Jon TURNEY wrote:
> Based on , 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...
Size: 539 bytes
Desc: OpenPGP digital signature
More information about the Newlib