diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-10-09 19:21:56 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-10-09 19:21:56 +0200 |
commit | 525c181a5a9a95e24d2111b7792608151a40eb84 (patch) | |
tree | 8ba16eeb3fb7327e5c3c5bba9c5786d4bb6ccec1 /wcsmbs/wcschrnul.c | |
parent | 4dd9e35bfd35d3138bc44169baba098005bad51e (diff) | |
parent | 7bb5f8a836b916d6ebf7b6921b136e99cea2442d (diff) |
Merge commit 'refs/top-bases/t/bigmem' into t/bigmem
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 |