aboutsummaryrefslogtreecommitdiff
path: root/wcsmbs/wcpncpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'wcsmbs/wcpncpy.c')
-rw-r--r--wcsmbs/wcpncpy.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/wcsmbs/wcpncpy.c b/wcsmbs/wcpncpy.c
index 98c77a5..e19e44c 100644
--- a/wcsmbs/wcpncpy.c
+++ b/wcsmbs/wcpncpy.c
@@ -18,6 +18,9 @@
#include <wchar.h>
+#ifdef WCPNCPY
+# define __wcpncpy WCPNCPY
+#endif
/* Copy no more than N wide-characters of SRC to DEST, returning the
address of the last character written into DEST. */
@@ -82,4 +85,6 @@ __wcpncpy (dest, src, n)
return dest - 1;
}
+#ifndef WCPNCPY
weak_alias (__wcpncpy, wcpncpy)
+#endif