diff options
Diffstat (limited to 'wcsmbs/wcschrnul.c')
-rw-r--r-- | wcsmbs/wcschrnul.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/wcsmbs/wcschrnul.c b/wcsmbs/wcschrnul.c index 4bc42d1d84..791e47df5b 100644 --- a/wcsmbs/wcschrnul.c +++ b/wcsmbs/wcschrnul.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1995-2015 Free Software Foundation, Inc. +/* Copyright (C) 1995-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -17,12 +17,13 @@ #include <wchar.h> +#ifdef WCSCHRNUL +# define __wcschrnul WCSCHRNUL +#endif /* Find the first occurrence of WC in WCS. */ wchar_t * -__wcschrnul (wcs, wc) - const wchar_t *wcs; - const wchar_t wc; +__wcschrnul (const wchar_t *wcs, const wchar_t wc) { while (*wcs != L'\0') if (*wcs == wc) @@ -32,4 +33,6 @@ __wcschrnul (wcs, wc) return (wchar_t *) wcs; } +#ifndef WCSCHRNUL weak_alias (__wcschrnul, wcschrnul) +#endif |