From: Emden Gansner Date: Thu, 3 Jan 2013 20:42:42 +0000 (-0500) Subject: Turn off call to isatty() in flex output. The cgraph readers never use X-Git-Tag: LAST_LIBGRAPH~32^2~260 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=40a5a33ac76e4d3d22662fd51e7c0e1d2be3100b;p=graphviz Turn off call to isatty() in flex output. The cgraph readers never use this result, and the Windows version of isatty() crashes if the file descriptor is not a valid open file. --- diff --git a/lib/cgraph/scan.l b/lib/cgraph/scan.l index 75d377d8b..e2215d1f4 100644 --- a/lib/cgraph/scan.l +++ b/lib/cgraph/scan.l @@ -39,6 +39,7 @@ void agsetfile(char* f) { InputFile = f; line_num = 1; } */ void aglexinit(Agdisc_t *disc, void *ifile) { Disc = disc; Ifile = ifile; graphType = 0;} +#define isatty(x) 0 #ifndef YY_INPUT #define YY_INPUT(buf,result,max_size) \ if ((result = Disc->io->afread(Ifile, buf, max_size)) < 0) \