comparison src/strftime.c @ 42384:e4835ecdffbc

(mbsinit): Define as no-op if not available.
author Richard M. Stallman <rms@gnu.org>
date Fri, 28 Dec 2001 19:05:42 +0000
parents 1139c325f625
children 38d2cf408e27
comparison
equal deleted inserted replaced
42383:4d7337b920e3 42384:e4835ecdffbc
66 #define DO_MULTIBYTE (HAVE_MBLEN && ! MULTIBYTE_IS_FORMAT_SAFE) 66 #define DO_MULTIBYTE (HAVE_MBLEN && ! MULTIBYTE_IS_FORMAT_SAFE)
67 67
68 #if DO_MULTIBYTE 68 #if DO_MULTIBYTE
69 # if HAVE_MBRLEN 69 # if HAVE_MBRLEN
70 # include <wchar.h> 70 # include <wchar.h>
71 # if !defined (mbsinit) && !defined (HAVE_MBSINIT)
72 # define mbsinit(ps) 1
73 # endif /* !defined (mbsinit) && !defined (HAVE_MBSINIT) */
71 # else 74 # else
72 /* Simulate mbrlen with mblen as best we can. */ 75 /* Simulate mbrlen with mblen as best we can. */
73 # define mbstate_t int 76 # define mbstate_t int
74 # define mbrlen(s, n, ps) mblen (s, n) 77 # define mbrlen(s, n, ps) mblen (s, n)
75 # define mbsinit(ps) (*(ps) == 0) 78 # define mbsinit(ps) (*(ps) == 0)