projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
837139e
)
ENABLE_NLS must wrap HAVE_USELOCALE, else configure will make us produce compile...
author
Wilfried Göesgens
<willi@citadel.org>
Sun, 30 Mar 2008 23:18:01 +0000
(23:18 +0000)
committer
Wilfried Göesgens
<willi@citadel.org>
Sun, 30 Mar 2008 23:18:01 +0000
(23:18 +0000)
webcit/fmt_date.c
patch
|
blob
|
history
diff --git
a/webcit/fmt_date.c
b/webcit/fmt_date.c
index 26f3cc0fe6d9896f7c7fd452140e98603d85140d..9adb0c63efbdef57720c316fdbfb346790b35c24 100644
(file)
--- 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