summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2015-06-07 02:59:49 +0000
committerRich Felker <dalias@aerifal.cx>2015-06-07 02:59:49 +0000
commit04b8360adbb6487f61aa0c00e53ec3a90a5a0d29 (patch)
treeb4293a8b7d0dec71c7602fdae9ffccbe81fb4214 /src
parent16bf466532d7328e971012b0731ad493b017ad29 (diff)
downloadmusl-04b8360adbb6487f61aa0c00e53ec3a90a5a0d29.tar.gz
remove redefinition of MB_CUR_MAX in locale_impl.h
unless/until the byte-based C locale is implemented, defining MB_CUR_MAX to 1 in the C locale is wrong. no internal code currently uses the MB_CUR_MAX macro, but having it defined inconsistently is error-prone. applications get the value from stdlib.h and were unaffected.
Diffstat (limited to 'src')
-rw-r--r--src/internal/locale_impl.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/internal/locale_impl.h b/src/internal/locale_impl.h
index f15e1565..db915ca2 100644
--- a/src/internal/locale_impl.h
+++ b/src/internal/locale_impl.h
@@ -30,6 +30,3 @@ const char *__lctrans_cur(const char *);
#define CURRENT_LOCALE (__pthread_self()->locale)
#define CURRENT_UTF8 (!!__pthread_self()->locale->cat[LC_CTYPE])
-
-#undef MB_CUR_MAX
-#define MB_CUR_MAX (CURRENT_UTF8 ? 4 : 1)