summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libc/sysdeps/linux/arm/aeabi_mb_cur_max.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/arm/aeabi_mb_cur_max.c b/libc/sysdeps/linux/arm/aeabi_mb_cur_max.c
index f68a3a193..937a7fffb 100644
--- a/libc/sysdeps/linux/arm/aeabi_mb_cur_max.c
+++ b/libc/sysdeps/linux/arm/aeabi_mb_cur_max.c
@@ -20,10 +20,16 @@
#include <locale.h>
#include <stdlib.h>
+#ifdef __UCLIBC_HAS_WCHAR__
libc_hidden_proto(_stdlib_mb_cur_max)
+#endif
int
__aeabi_MB_CUR_MAX (void)
{
+#ifdef __UCLIBC_HAS_WCHAR__
return MB_CUR_MAX;
+#else
+ return 1;
+#endif
}