Improve compatibility with C++11.

Fixes #5307
This commit is contained in:
Gunnar Beutner 2013-12-11 16:40:55 +01:00
parent 98671ebec2
commit 7a107b7dbd
1 changed files with 2 additions and 2 deletions

View File

@ -126,10 +126,10 @@ bool StreamLogger::IsTty(std::ostream& stream)
{ {
#ifndef _WIN32 #ifndef _WIN32
/* Eww... */ /* Eww... */
if (stream == std::cout) if (&stream == &std::cout)
return isatty(fileno(stdout)); return isatty(fileno(stdout));
if (stream == std::cerr) if (&stream == &std::cerr)
return isatty(fileno(stderr)); return isatty(fileno(stderr));
#endif /*_ WIN32 */ #endif /*_ WIN32 */