From 3d87b3b881a92e05005df939a1cacf5a66af2174 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Wed, 7 Apr 2004 14:23:55 +0000 Subject: [PATCH] Add more conditional defines --- src/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/file.c b/src/file.c index 9e48e95f..269ae861 100644 --- a/src/file.c +++ b/src/file.c @@ -77,7 +77,7 @@ #include "patchlevel.h" #ifndef lint -FILE_RCSID("@(#)$Id: file.c,v 1.92 2004/03/22 21:34:39 christos Exp $") +FILE_RCSID("@(#)$Id: file.c,v 1.93 2004/04/07 14:23:55 christos Exp $") #endif /* lint */ @@ -453,7 +453,7 @@ byteconv2(int from, int same, int big_endian) size_t file_mbswidth(const char *s) { -#ifdef HAVE_WCHAR_H +#if defined(HAVE_WCHAR_H) && defined(HAVE_MBRTOWC) && defined(HAVE_WCWIDTH) size_t bytesconsumed, old_n, n, width = 0; mbstate_t state; wchar_t nextchar; -- 2.50.1