OSDN Git Service

make it build if WCHAR is disabled
authorPeter S. Mazinger <ps.m@gmx.net>
Mon, 30 Jan 2006 09:39:51 +0000 (09:39 -0000)
committerPeter S. Mazinger <ps.m@gmx.net>
Mon, 30 Jan 2006 09:39:51 +0000 (09:39 -0000)
libc/sysdeps/linux/arm/aeabi_mb_cur_max.c

index f68a3a1..937a7ff 100644 (file)
 #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
 }