Browse Source

make it build if WCHAR is disabled

Peter S. Mazinger 19 years ago
parent
commit
fd9ddddb90
1 changed files with 6 additions and 0 deletions
  1. 6 0
      libc/sysdeps/linux/arm/aeabi_mb_cur_max.c

+ 6 - 0
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
 }