summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-30 09:39:51 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-30 09:39:51 +0000
commitfd9ddddb9009221c3e374d820b9854109ae825f6 (patch)
treebb707379ef94f3c34a2829f2a3d4454864217faf
parentd338c96917f1393517bade1216e2e7770eeb269b (diff)
make it build if WCHAR is disabled
-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
}