X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/0150aabe359f48ec9ea0b0d4cef081799731e414..342b8b6e2156e923797745af2da2596e3086ccd5:/lib/quotearg.c?ds=sidebyside diff --git a/lib/quotearg.c b/lib/quotearg.c index 2a7ba4c4..ca42365e 100644 --- a/lib/quotearg.c +++ b/lib/quotearg.c @@ -63,6 +63,11 @@ #endif #if HAVE_WCHAR_H + +/* BSD/OS 4.1 wchar.h requires FILE and struct tm to be declared. */ +# include +# include + # include #endif @@ -73,8 +78,12 @@ # undef MB_CUR_MAX # define MB_CUR_MAX 1 # define mbrtowc(pwc, s, n, ps) ((*(pwc) = *(s)) != 0) -# define mbsinit(ps) 1 # define iswprint(wc) ISPRINT ((unsigned char) (wc)) +# undef HAVE_MBSINIT +#endif + +#if !defined mbsinit && !HAVE_MBSINIT +# define mbsinit(ps) 1 #endif #ifndef iswprint