From 15e94917f0129692d599bde720e2151c1077f650 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Tue, 11 Sep 2018 07:01:33 +0200 Subject: [PATCH] mescc: Support gcc-3.0: Locale header fix. * include/locale.h (LC_ALL, LC_NUMERIC): Numbers, not strings. (LC_COLLATE, LC_CTYPE): New macro. --- include/locale.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/locale.h b/include/locale.h index fd9bbdc6..06a10b06 100644 --- a/include/locale.h +++ b/include/locale.h @@ -30,8 +30,10 @@ #else // ! WITH_GLIBC #ifndef LC_ALL -#define LC_ALL "LC_ALL" -#define LC_NUMERIC "LC_NUMERIC" +#define LC_CTYPE 0 +#define LC_NUMERIC 1 +#define LC_COLLATE 3 +#define LC_ALL 6 #endif char * setlocale (int category, char const *locale);