X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=webcit%2Ffmt_date.c;h=15e5673ca25756813f6529f6fff6d6aa4e21bb5e;hp=7979ecf585efec511d573c8c63ee795739b035fe;hb=faa7bc4175fa88b5fd6548b2e92cdc5497dfe692;hpb=898bab06ba7d6cf04a9b5e41bfcc6319ff3bb8de diff --git a/webcit/fmt_date.c b/webcit/fmt_date.c index 7979ecf58..15e5673ca 100644 --- a/webcit/fmt_date.c +++ b/webcit/fmt_date.c @@ -40,6 +40,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); @@ -50,6 +51,9 @@ size_t wc_strftime(char *s, size_t max, const char *format, const struct tm *tm) #else return strftime(s, max, format, tm); #endif +#else + return strftime(s, max, format, tm); +#endif }