summaryrefslogtreecommitdiff
path: root/src/strftime.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2001-12-28 19:05:42 +0000
committerRichard M. Stallman <rms@gnu.org>2001-12-28 19:05:42 +0000
commit025210618f126f2cc7fcbc2e0f58dbe8352a12c9 (patch)
tree7f55318f96fbd71e671936b6dee0aa66ceb530ca /src/strftime.c
parent00417fac361c4c600e3d75fb6cfbe97709606ad9 (diff)
downloademacs-025210618f126f2cc7fcbc2e0f58dbe8352a12c9.tar.gz
(mbsinit): Define as no-op if not available.
Diffstat (limited to 'src/strftime.c')
-rw-r--r--src/strftime.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/strftime.c b/src/strftime.c
index 61047bf9578..789e7ae8e91 100644
--- a/src/strftime.c
+++ b/src/strftime.c
@@ -68,6 +68,9 @@ extern char *tzname[];
#if DO_MULTIBYTE
# if HAVE_MBRLEN
# include <wchar.h>
+# if !defined (mbsinit) && !defined (HAVE_MBSINIT)
+# define mbsinit(ps) 1
+# endif /* !defined (mbsinit) && !defined (HAVE_MBSINIT) */
# else
/* Simulate mbrlen with mblen as best we can. */
# define mbstate_t int