aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2005-12-26 08:03:29 +1000
committerGravatar axel <axel@liljencrantz.se>2005-12-26 08:03:29 +1000
commitb069489792556d493c3c0cbfead24cb48d93a683 (patch)
tree78580731c5d143739d740c9c438e939fa144647d /common.c
parentb37eeb92ef73f68b51178ca17398d8b32d440da4 (diff)
Only use internal wcsndup implementation of no external one exists
darcs-hash:20051225220329-ac50b-8ab5165f227112bb28406168d6c88e45a74fc7bc.gz
Diffstat (limited to 'common.c')
-rw-r--r--common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common.c b/common.c
index 76bc2029..2ce43d9e 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 )
{