aboutsummaryrefslogtreecommitdiff
path: root/wcsmbs/wcsncpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'wcsmbs/wcsncpy.c')
-rw-r--r--wcsmbs/wcsncpy.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/wcsmbs/wcsncpy.c b/wcsmbs/wcsncpy.c
index 7016f41..5ee5ee6 100644
--- a/wcsmbs/wcsncpy.c
+++ b/wcsmbs/wcsncpy.c
@@ -18,6 +18,9 @@
#include <wchar.h>
+#ifdef WCSNCPY
+# define __wcsncpy WCSNCPY
+#endif
/* Copy no more than N wide-characters of SRC to DEST. */
wchar_t *
@@ -83,4 +86,6 @@ __wcsncpy (dest, src, n)
return s;
}
+#ifndef WCSNCPY
weak_alias (__wcsncpy, wcsncpy)
+#endif