mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-12 21:18:53 +00:00
fallback: restore wcsndup fallback for Apple platforms
Problem introduced in commit 002757225a
.
This commit is contained in:
parent
002757225a
commit
42a320064c
1 changed files with 2 additions and 2 deletions
|
@ -191,6 +191,8 @@ int wcsncasecmp(const wchar_t *a, const wchar_t *b, size_t n) {
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#endif // __APPLE__
|
||||
|
||||
#ifndef HAVE_WCSNDUP
|
||||
wchar_t *wcsndup(const wchar_t *in, size_t c) {
|
||||
wchar_t *res = (wchar_t *)malloc(sizeof(wchar_t) * (c + 1));
|
||||
|
@ -202,8 +204,6 @@ wchar_t *wcsndup(const wchar_t *in, size_t c) {
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif // __APPLE__
|
||||
|
||||
#ifndef HAVE_WCSLCPY
|
||||
/*$OpenBSD: strlcpy.c,v 1.8 2003/06/17 21:56:24 millert Exp $*/
|
||||
|
||||
|
|
Loading…
Reference in a new issue