diff --git a/common.c b/common.c index 76bc2029c..2ce43d9ee 100644 --- a/common.c +++ b/common.c @@ -393,7 +393,7 @@ wchar_t **strv2wcsv( const char **in ) } - +#ifndef HAVE_WCSNDUP wchar_t *wcsndup( const wchar_t *in, int c ) { c3++; @@ -407,6 +407,7 @@ wchar_t *wcsndup( const wchar_t *in, int c ) res[c] = L'\0'; return res; } +#endif long convert_digit( wchar_t d, int base ) {