From: Magnus Jacobsson Date: Tue, 8 Sep 2020 18:12:17 +0000 (+0200) Subject: Fix lefty compile error on Windows X-Git-Tag: 2.46.0~20^2^2~87^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9db7b1684d0dc5728070b884dd41a1c47f36db3e;p=graphviz Fix lefty compile error on Windows The FILE type, a.k.a. struct _iobuf does not have any _cnt field on Windows. Setting HAVE_FILE_CNT to 0 avoids the use of that. None of the other implementation alternatives work either so the canread macro in lefty.c always returns 1. --- diff --git a/windows/include/config.h b/windows/include/config.h index bd3a2eb22..7e7f66cf8 100644 --- a/windows/include/config.h +++ b/windows/include/config.h @@ -63,7 +63,7 @@ #define HAVE_EXPAT_H 1 /* Define if FILE structure provides _cnt */ -#define HAVE_FILE_CNT 1 +#define HAVE_FILE_CNT 0 /* Define if FILE structure provides _IO_read_end */ /* #undef HAVE_FILE_IO_READ_END */