From 4009ebc9f573de5f26595e0f20b239cabc30d74d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Sun, 30 Mar 2008 23:18:01 +0000 Subject: [PATCH] ENABLE_NLS must wrap HAVE_USELOCALE, else configure will make us produce compile errors in certain situations. --- webcit/fmt_date.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.2