summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2004-04-07 14:23:55 +0000
committerChristos Zoulas <christos@zoulas.com>2004-04-07 14:23:55 +0000
commit0900a464c49454126b21bd8b847a33f619d99362 (patch)
tree6ebe52b7ed0d3e4cfb5139f0a4588a2af61138e3
parent461f7b4fca394a9723ede150f4b9bf761b853412 (diff)
downloadfile-git-0900a464c49454126b21bd8b847a33f619d99362.tar.gz
Add more conditional defines
-rw-r--r--src/file.c4
1 files 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;