isatty: Support for MSVC 9.
authorBruno Haible <bruno@clisp.org>
Tue, 3 Jan 2012 12:52:36 +0000 (13:52 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 3 Jan 2012 14:06:58 +0000 (15:06 +0100)
commit39065e3b61f9c359b6c01739be9bccea9643ea7c
tree0929297ae5d306b92f218e824c63ffef359a63ce
parent943bf5a92b5a7a3e4b3a7178654c5491244ee8aa
isatty: Support for MSVC 9.

* doc/posix-functions/isatty.texi: Mention the MSVC problem.
* lib/isatty.c: Include <errno.h>, msvc-inval.h.
(_isatty_nothrow): New function.
(isatty): Use it instead of _isatty.
(IsConsoleHandle): Add comment, from Paolo Bonzini.
* lib/poll.c (IsConsoleHandle): Likewise.
* lib/select.c (IsConsoleHandle): Likewise.
* m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
(gl_PREREQ_ISATTY): New macro.
* modules/isatty (Depends-on): Add msvc-inval.
(configure.ac): Invoke gl_PREREQ_ISATTY.
ChangeLog
doc/posix-functions/isatty.texi
lib/isatty.c
lib/poll.c
lib/select.c
m4/isatty.m4
modules/isatty