From 4ed874500c66aeb60cb11a0acc081dbc113eec51 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Fri, 16 Jul 2010 09:58:26 +0200 Subject: Windows fixes and CMake scripts to build under Windows --- src/rcclocale.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'src/rcclocale.c') diff --git a/src/rcclocale.c b/src/rcclocale.c index fcd9a6d..b514e80 100644 --- a/src/rcclocale.c +++ b/src/rcclocale.c @@ -19,9 +19,14 @@ #include #include -#include #include +#include +#ifdef HAVE_STRINGS_H +# include +#endif /* HAVE_STRINGS_H */ + + #include "../config.h" #ifdef HAVE_LIBCHARSET @@ -35,11 +40,17 @@ #include "rccconfig.h" int rccLocaleGetClassByName(const char *locale) { +#ifdef LC_CTYPE if (!locale) return LC_CTYPE; - + if (!strcmp(locale, "LC_CTYPE")) return LC_CTYPE; +#endif /* LC_CTYPE */ +#ifdef LC_MESSAGES if (!strcmp(locale, "LC_MESSAGES")) return LC_MESSAGES; +#endif /* LC_MESSAGES */ +#ifdef LC_COLLATE if (!strcmp(locale, "LC_COLLATE")) return LC_COLLATE; +#endif /* LC_COLLATE */ /* if (!strcmp(locale, "LC_ALL")) return LC_ALL; if (!strcmp(locale, "LC_NUMERIC")) return LC_NUMERIC; -- cgit v1.2.3