]> granicus.if.org Git - file/commitdiff
Add more conditional defines
authorChristos Zoulas <christos@zoulas.com>
Wed, 7 Apr 2004 14:23:55 +0000 (14:23 +0000)
committerChristos Zoulas <christos@zoulas.com>
Wed, 7 Apr 2004 14:23:55 +0000 (14:23 +0000)
src/file.c

index 9e48e95fe52cfea472ca1016368597264ecb0c15..269ae861dd816121161f7d4708947cb1abb3c811 100644 (file)
@@ -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;