Ver Fonte

make it build if WCHAR is disabled

Peter S. Mazinger há 20 anos atrás
pai
commit
fd9ddddb90
1 ficheiros alterados com 6 adições e 0 exclusões
  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
 }