1
0
mirror of https://github.com/catchorg/Catch2.git synced 2025-04-28 03:45:44 +02:00

Merge pull request from PetterS/cygwinfix

Fix fileno not always present. fileno(stdout) = 1.
This commit is contained in:
Phil Nash 2013-11-26 15:33:37 -08:00
commit 8ba6555acd

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