aboutsummaryrefslogtreecommitdiff
path: root/wcsmbs
diff options
context:
space:
mode:
Diffstat (limited to 'wcsmbs')
-rw-r--r--wcsmbs/mbrlen.c4
-rw-r--r--wcsmbs/mbrtowc.c4
2 files changed, 2 insertions, 6 deletions
diff --git a/wcsmbs/mbrlen.c b/wcsmbs/mbrlen.c
index ff7f6628a5..a173ea0f20 100644
--- a/wcsmbs/mbrlen.c
+++ b/wcsmbs/mbrlen.c
@@ -19,8 +19,6 @@
#include <wchar.h>
-#undef __mbrlen
-
/* The mbrlen function has an internal shift state which gets used if
the PS parameter is NULL. */
static mbstate_t internal;
@@ -34,5 +32,5 @@ __mbrlen (s, n, ps)
{
return __mbrtowc (NULL, s, n, ps ?: &internal);
}
-INTDEF(__mbrlen)
+libc_hidden_def (__mbrlen)
weak_alias (__mbrlen, mbrlen)
diff --git a/wcsmbs/mbrtowc.c b/wcsmbs/mbrtowc.c
index a2a31872c8..521fdd753f 100644
--- a/wcsmbs/mbrtowc.c
+++ b/wcsmbs/mbrtowc.c
@@ -29,8 +29,6 @@
# define EILSEQ EINVAL
#endif
-#undef __mbrtowc
-
/* This is the private state used if PS is NULL. */
static mbstate_t state;
@@ -106,5 +104,5 @@ __mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps)
return result;
}
-INTDEF(__mbrtowc)
+libc_hidden_def (__mbrtowc)
weak_alias (__mbrtowc, mbrtowc)