static bool check_locale_name(const char *locale);
static bool check_locale_encoding(const char *locale, int encoding);
static void setlocales(void);
-static void strreplace(char *str, char *needle, char *replacement);
static char *localemap(char *locale);
static void usage(const char *progname);
return true;
}
+#ifdef WIN32
+
/*
* Replace 'needle' with 'replacement' in 'str' . Note that the replacement
* is done in-place, so 'replacement' must be shorter than 'needle'.
}
}
+#endif /* WIN32 */
+
/*
* Windows has a problem with locale names that have a dot or apostrophe in
* the country name. For example:
strreplace(locale, "Chinese_Macau S.A.R..950", "ZHM");
strreplace(locale, "Chinese (Traditional)_Macao S.A.R..950", "ZHM");
strreplace(locale, "Chinese_Macao S.A.R..950", "ZHM");
-#endif
+#endif /* WIN32 */
return locale;
}