|
From: | Vadim V. Zhytnikov |
Subject: | Re: [Maxima] [Gcl-devel] Re: windows-only read patch |
Date: | Thu, 03 May 2007 21:48:45 +0300 |
User-agent: | Thunderbird 1.5.0.10 (Windows/20070221) |
Camm Maguire writes:
Thanks so much Vadim! How about this? Take care, int mingwlisten(FILE *fp) { int c = 0; if ((fp)->_IO_read_ptr >= (fp)->_IO_read_end) { ioctlsocket(fileno(fp), FIONREAD, &c); if (c<=0) return 1; } return 0; }
We already tried this version of code on March 27. It fails due to _IO_read_ptr and _IO_read_end. There is no definition of such things in mingw header files. WBR Vadim -- Vadim V. Zhytnikov <address@hidden> <address@hidden>
[Prev in Thread] | Current Thread | [Next in Thread] |