Re: [Mingw-w64-public] [PATCH v4] Make isatty Cygwin-compatible

2016-11-15 Thread Mihail Konev
Aside from the patch, with crt build directory located next to mingw-w64/, 'make' does not trigger a partial rebuild upon editing stdio/isatty.c: make all-am Entering dir ... Leaving dir ... So 'make distclean && ../mingw-w64/mingw-w64-crt/configure ...  && make && make install' must be performed

Re: [Mingw-w64-public] [PATCH v4] Make isatty Cygwin-compatible

2016-11-15 Thread JonY
On 11/15/2016 12:20, Mihail Konev wrote: > Before, isatty() was an alias for WinAPI _isatty(). > This resulted in wrong result for mintty. > > Implement a pipe name check in a static isatty(). > This makes io.h include NT and Windows APIs. > > The change isn't strictly standard, as it adds > 'sta

[Mingw-w64-public] [PATCH v4] Make isatty Cygwin-compatible

2016-11-14 Thread Mihail Konev
Before, isatty() was an alias for WinAPI _isatty(). This resulted in wrong result for mintty. Implement a pipe name check in a static isatty(). This makes io.h include NT and Windows APIs. The change isn't strictly standard, as it adds 'static' to the isatty() signature. Signed-off-by: Mihail Ko