Bring internal prototype for wcsncasecmp() in line with the system

and POSIX one.  From upstream; ok landry@ dcoppa@
This commit is contained in:
naddy 2011-06-06 10:55:17 +00:00
parent 2875e6979c
commit 61db854af6
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-iodbcinst_unicode_c,v 1.1 2011/06/06 10:55:17 naddy Exp $
--- iodbcinst/unicode.c.orig Sun Jun 5 23:35:43 2011
+++ iodbcinst/unicode.c Sun Jun 5 23:36:27 2011
@@ -230,7 +230,7 @@ towlower (wchar_t wc)
#if !defined(HAVE_WCSNCASECMP)
-int wcsncasecmp (wchar_t* s1, wchar_t* s2, size_t n)
+int wcsncasecmp (const wchar_t* s1, const wchar_t* s2, size_t n)
{
wchar_t c1, c2;

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-iodbcinst_unicode_h,v 1.3 2011/06/06 10:55:17 naddy Exp $
--- iodbcinst/unicode.h.orig Sun Jun 5 23:35:04 2011
+++ iodbcinst/unicode.h Sun Jun 5 23:36:04 2011
@@ -151,7 +151,7 @@ wchar_t* wcscat(wchar_t *dest, const wchar_t *src);
int wcscmp (const wchar_t* s1, const wchar_t* s2);
#endif
#if !defined(HAVE_WCSNCASECMP)
-int wcsncasecmp (wchar_t* s1, wchar_t* s2, size_t n);
+int wcsncasecmp (const wchar_t* s1, const wchar_t* s2, size_t n);
#endif
#endif /* _UNICODE_H */