summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/wcscasecmp.c
diff options
context:
space:
mode:
authorguenther <>2015-09-12 16:23:14 +0000
committerguenther <>2015-09-12 16:23:14 +0000
commit913cc548a379f5f2408e621a6c02c786392dab9d (patch)
tree5148a0ffe69b5fa2b2c4caf343db71769142afed /src/lib/libc/string/wcscasecmp.c
parent56a3e20d1e41c02e4afd069925ec512ebb40b905 (diff)
downloadopenbsd-913cc548a379f5f2408e621a6c02c786392dab9d.tar.gz
openbsd-913cc548a379f5f2408e621a6c02c786392dab9d.tar.bz2
openbsd-913cc548a379f5f2408e621a6c02c786392dab9d.zip
Wrap <inttypes.h> and finish wrapping of <wchar.h> so that calls go direct
and the symbols not in the C standard are weak
Diffstat (limited to 'src/lib/libc/string/wcscasecmp.c')
-rw-r--r--src/lib/libc/string/wcscasecmp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libc/string/wcscasecmp.c b/src/lib/libc/string/wcscasecmp.c
index b14997ee75..b122e720fe 100644
--- a/src/lib/libc/string/wcscasecmp.c
+++ b/src/lib/libc/string/wcscasecmp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: wcscasecmp.c,v 1.2 2011/06/01 19:29:48 naddy Exp $ */ 1/* $OpenBSD: wcscasecmp.c,v 1.3 2015/09/12 16:23:14 guenther Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2011 Marc Espie 4 * Copyright (c) 2011 Marc Espie
@@ -41,6 +41,7 @@ wcscasecmp(const wchar_t *s1, const wchar_t *s2)
41 /* XXX assumes wchar_t = int */ 41 /* XXX assumes wchar_t = int */
42 return ((rune_t)l1 - (rune_t)l2); 42 return ((rune_t)l1 - (rune_t)l2);
43} 43}
44DEF_WEAK(wcscasecmp);
44 45
45int 46int
46wcsncasecmp(const wchar_t *s1, const wchar_t *s2, size_t n) 47wcsncasecmp(const wchar_t *s1, const wchar_t *s2, size_t n)
@@ -59,3 +60,4 @@ wcsncasecmp(const wchar_t *s1, const wchar_t *s2, size_t n)
59 } while (--n != 0); 60 } while (--n != 0);
60 return (0); 61 return (0);
61} 62}
63DEF_WEAK(wcsncasecmp);