From: Art Cancro Date: Mon, 23 May 2011 19:47:07 +0000 (-0400) Subject: ServerShutdownModule_GETTEXT() was failing on non-locale-aware systems, fixed X-Git-Tag: v7.87~17^2~2^2 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=7c5f40d5cc0ed9011eb5c6b7ad1b0606f887db29 ServerShutdownModule_GETTEXT() was failing on non-locale-aware systems, fixed --- diff --git a/webcit/gettext.c b/webcit/gettext.c index 120f4bcfd..b05bb9bff 100644 --- a/webcit/gettext.c +++ b/webcit/gettext.c @@ -483,13 +483,13 @@ void ServerShutdownModule_GETTEXT (void) { -#ifdef HAVE_USELOCALE +#ifdef ENABLE_NLS int i; for (i = 0; i < nLocalesLoaded; ++i) { if (Empty_Locale != wc_locales[i]) freelocale(wc_locales[i]); } free(wc_locales); -#endif if (!AvailLangLoaded) free(AvailLangLoaded); +#endif }