Commit 7188824c by Eric Fiselier

Fix windows build in console_reporter.cc. Fixes #228

parent 02230445
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment