X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Finternal%2Flocale_impl.h;h=f5e4d9b4ae00313c0057414baaa270bbc4554a20;hb=8735a921d0242be0d7e6dbe0f76f79e09d4f06dd;hp=db915ca21b90698732bb4a683c6b797359819e88;hpb=04b8360adbb6487f61aa0c00e53ec3a90a5a0d29;p=musl diff --git a/src/internal/locale_impl.h b/src/internal/locale_impl.h index db915ca2..f5e4d9b4 100644 --- a/src/internal/locale_impl.h +++ b/src/internal/locale_impl.h @@ -1,3 +1,6 @@ +#ifndef _LOCALE_IMPL_H +#define _LOCALE_IMPL_H + #include #include #include "libc.h" @@ -30,3 +33,8 @@ 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) + +#endif