summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-03-09 15:05:00 +0100
committerPeter S. Mazinger <ps.m@gmx.net>2011-03-09 15:05:00 +0100
commitd57b631e82529b2c880f5d7e4fbcd88042803f80 (patch)
tree32556a880d356da762b6b46d62a1963834364512 /include
parent7aea441c8a240bd5a0717ec09ae8efc4878cd377 (diff)
stdlib.h: move MB_CUR_MAX = 1 from wchar-stub.h
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Diffstat (limited to 'include')
-rw-r--r--include/stdlib.h4
-rw-r--r--include/wchar-stub.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index 6afc321e6..c533bd57a 100644
--- a/include/stdlib.h
+++ b/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
diff --git a/include/wchar-stub.h b/include/wchar-stub.h
index 0b0aa29aa..918c78dd4 100644
--- a/include/wchar-stub.h
+++ b/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)