diff options
Diffstat (limited to 'newlib/libc/locale/locale.c')
-rw-r--r-- | newlib/libc/locale/locale.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/newlib/libc/locale/locale.c b/newlib/libc/locale/locale.c index d48a53a87..66c93d740 100644 --- a/newlib/libc/locale/locale.c +++ b/newlib/libc/locale/locale.c @@ -44,7 +44,7 @@ locale. This is a minimal implementation, supporting only the required <<"C">> value for <[locale]>; strings representing other locales are not -honored unless _MB_CAPABLE is defined in which case three new +honored unless MB_CAPABLE is defined in which case three new extensions are allowed for LC_CTYPE or LC_MESSAGES only: <<"C-JIS">>, <<"C-EUCJP">>, <<"C-SJIS">>, or <<"C-ISO-8859-1">>. (<<"">> is also accepted; it represents the default locale @@ -86,7 +86,6 @@ No supporting OS subroutines are required. * (Only "C" or null supported). */ -#include <newlib.h> #include <locale.h> #include <string.h> #include <limits.h> @@ -121,7 +120,7 @@ _DEFUN(_setlocale_r, (p, category, locale), int category _AND _CONST char *locale) { -#ifndef _MB_CAPABLE +#ifndef MB_CAPABLE if (locale) { if (strcmp (locale, "C") && strcmp (locale, "")) |