Browse Source

stdlib.h: move MB_CUR_MAX = 1 from wchar-stub.h

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger 13 years ago
parent
commit
d57b631e82
2 changed files with 3 additions and 2 deletions
  1. 3 1
      include/stdlib.h
  2. 0 1
      include/wchar-stub.h

+ 3 - 1
include/stdlib.h

@@ -143,9 +143,11 @@ __END_NAMESPACE_C99
 extern size_t __ctype_get_mb_cur_max (void) __THROW __wur;
 #else
 #ifdef __UCLIBC_HAS_WCHAR__
-#define	MB_CUR_MAX	(_stdlib_mb_cur_max ())
+# define	MB_CUR_MAX	(_stdlib_mb_cur_max ())
 extern size_t _stdlib_mb_cur_max (void) __THROW __wur;
 libc_hidden_proto(_stdlib_mb_cur_max)
+#else
+# define	MB_CUR_MAX	1
 #endif
 #endif
 

+ 0 - 1
include/wchar-stub.h

@@ -7,7 +7,6 @@
 #ifndef _WCHAR_H
 #define _WCHAR_H
 
-#define MB_CUR_MAX 1
 typedef unsigned int wint_t;
 #define WEOF (0xffffffffu)