Fix fileno not always present. fileno(stdout) = STDOUT_FILENO.

This was a problem when compiling on Cygwin with gcc 4.8.
This commit is contained in:
Petter Strandmark 2013-11-26 19:37:37 +01:00
parent 993430a3c4
commit c032dfa41c

View File

@ -117,7 +117,7 @@ namespace {
}; };
inline bool shouldUseColourForPlatform() { inline bool shouldUseColourForPlatform() {
return isatty( fileno(stdout) ); return isatty(STDOUT_FILENO);
} }
PosixColourImpl platformColourImpl; PosixColourImpl platformColourImpl;