summaryrefslogtreecommitdiffstats
path: root/include/xlocale/_string.h
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2014-06-14 02:57:40 +0000
committerpfg <pfg@FreeBSD.org>2014-06-14 02:57:40 +0000
commitb890481de0fc39ae91e5a454317a44aeee3a313a (patch)
treec971fabf6d364693631fe7339523fd417f799697 /include/xlocale/_string.h
parentab49cda14759bcd622b82320c0fcf9560ff4ae04 (diff)
downloadFreeBSD-src-b890481de0fc39ae91e5a454317a44aeee3a313a.zip
FreeBSD-src-b890481de0fc39ae91e5a454317a44aeee3a313a.tar.gz
MFC r266865;
Fix strcasecmp_l() and strncasecmp_l() POSIX 2008 compliance. POSIX.1-2008 specifies that those two functions should be declared by including <strings.h>, not <string.h> (the latter only has strcoll_l() and strxfrm_l()): http://pubs.opengroup.org/onlinepubs/9699919799/functions/strcasecmp.html Bump __FreeBSD_version for ports that may be using the non-standard reference. Obtained from: DragonFlyBSD Reviewed by: theraven
Diffstat (limited to 'include/xlocale/_string.h')
-rw-r--r--include/xlocale/_string.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/xlocale/_string.h b/include/xlocale/_string.h
index 2627280..a7c146e 100644
--- a/include/xlocale/_string.h
+++ b/include/xlocale/_string.h
@@ -53,9 +53,7 @@ size_t strxfrm_l(char *, const char *, size_t, locale_t);
#ifdef _XLOCALE_H_
#ifndef _XLOCALE_STRING2_H
#define _XLOCALE_STRING2_H
-int strcasecmp_l(const char *, const char *, locale_t);
char *strcasestr_l(const char *, const char *, locale_t);
-int strncasecmp_l(const char *, const char *, size_t, locale_t);
#endif /* _XLOCALE_STRING2_H */
#endif /* _XLOCALE_H_ */
OpenPOWER on IntegriCloud