From: Wilfried Göesgens Date: Sun, 30 Mar 2008 23:18:01 +0000 (+0000) Subject: ENABLE_NLS must wrap HAVE_USELOCALE, else configure will make us produce compile... X-Git-Tag: v7.86~2374 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=4009ebc9f573de5f26595e0f20b239cabc30d74d ENABLE_NLS must wrap HAVE_USELOCALE, else configure will make us produce compile errors in certain situations. --- diff --git a/webcit/fmt_date.c b/webcit/fmt_date.c index 26f3cc0fe..9adb0c63e 100644 --- a/webcit/fmt_date.c +++ b/webcit/fmt_date.c @@ -22,6 +22,7 @@ typedef unsigned char byte; size_t wc_strftime(char *s, size_t max, const char *format, const struct tm *tm) { +#ifdef ENABLE_NLS #ifdef HAVE_USELOCALE if (wc_locales[WC->selected_language] == NULL) { return strftime(s, max, format, tm); @@ -29,6 +30,7 @@ size_t wc_strftime(char *s, size_t max, const char *format, const struct tm *tm) else { // TODO: this gives empty strings on debian. return strftime_l(s, max, format, tm, wc_locales[WC->selected_language]); } +#endif #else return strftime(s, max, format, tm); #endif