aboutsummaryrefslogtreecommitdiffstats
path: root/libc/include/stdlib.h
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2014-07-30 10:53:48 -0700
committerDan Albert <danalbert@google.com>2014-07-30 17:09:46 -0700
commit1aec7c1a35b2d03038b194967d5ebdc8e2c24b80 (patch)
tree977211860df02be4f4c0843cf231ec6c3da88ee6 /libc/include/stdlib.h
parent0f7ed163cf6c1fe6d71a1d7e5fb6d0989213be85 (diff)
downloadandroid_bionic-1aec7c1a35b2d03038b194967d5ebdc8e2c24b80.tar.gz
android_bionic-1aec7c1a35b2d03038b194967d5ebdc8e2c24b80.tar.bz2
android_bionic-1aec7c1a35b2d03038b194967d5ebdc8e2c24b80.zip
Proper MB_CUR_MAX.
Previously this was hard coded to 4. This is only the case for UTF-8 locales. As a side effect, this properly reports C.UTF-8 as the default locale instead of C. Change-Id: I7c73cc8fe6ffac61d211cd5f75287e36de06f4fc
Diffstat (limited to 'libc/include/stdlib.h')
-rw-r--r--libc/include/stdlib.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/include/stdlib.h b/libc/include/stdlib.h
index eb39fc921..984ceb334 100644
--- a/libc/include/stdlib.h
+++ b/libc/include/stdlib.h
@@ -167,7 +167,8 @@ extern int mbtowc(wchar_t *, const char *, size_t);
extern int wctomb(char *, wchar_t);
extern size_t wcstombs(char *, const wchar_t *, size_t);
-#define MB_CUR_MAX 4U
+extern size_t __mb_cur_max(void);
+#define MB_CUR_MAX __mb_cur_max()
__END_DECLS