diff --git a/src/i18n.c b/src/i18n.c index 98a499ffd..9dbffb3e3 100644 --- a/src/i18n.c +++ b/src/i18n.c @@ -4,7 +4,7 @@ For Tux Paint Language-related functions - Copyright (c) 2002-2020 by Bill Kendrick and others + Copyright (c) 2002-2022 by Bill Kendrick and others bill@newbreedsoftware.com http://www.tuxpaint.org/ @@ -25,7 +25,7 @@ $Id$ - June 14, 2002 - October 25, 2021 + June 14, 2002 - February 9, 2022 */ #include @@ -818,6 +818,9 @@ static const char *language_to_locale(const char *langstr) return NULL; } + +#if defined(__APPLE__) + /** * For a given locale, return the known locale that matches it closest, or exit * with a usage error. @@ -834,11 +837,11 @@ static const char *locale_to_closest_locale(const char *inlocale) int j = 0; /* find the locale with the longest string match */ - for (i=0; i