mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-27 23:19:32 +00:00
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:
parent
993430a3c4
commit
c032dfa41c
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ namespace {
|
|||
};
|
||||
|
||||
inline bool shouldUseColourForPlatform() {
|
||||
return isatty( fileno(stdout) );
|
||||
return isatty(STDOUT_FILENO);
|
||||
}
|
||||
|
||||
PosixColourImpl platformColourImpl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue