mirror of
https://github.com/google/benchmark.git
synced 2024-11-26 07:32:19 +00:00
Fix windows build in console_reporter.cc. Fixes #228
This commit is contained in:
parent
02230445e0
commit
7188824c33
|
@ -38,8 +38,8 @@ bool ConsoleReporter::ReportContext(const Context& context) {
|
|||
PrintBasicContext(&GetErrorStream(), context);
|
||||
|
||||
#ifdef BENCHMARK_OS_WINDOWS
|
||||
if (FLAGS_color_print && &Out != &GetOutputStream()) {
|
||||
GetErrorString() << "Color printing is only supported for stdout on windows."
|
||||
if (FLAGS_color_print && &std::cout != &GetOutputStream()) {
|
||||
GetErrorStream() << "Color printing is only supported for stdout on windows."
|
||||
" Disabling color printing\n";
|
||||
FLAGS_color_print = false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue