From b9c20609ce007c6e07562df57b8a5d845061b9e4 Mon Sep 17 00:00:00 2001 From: Nigel Stewart Date: Mon, 19 Aug 2013 10:58:47 -0500 Subject: [PATCH] Build fixes for VS2013 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit https://github.com/p3/regal/pull/97 Signed-off-by: José Fonseca --- common/formatter.hpp | 4 ++-- common/trace_file_snappy.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/common/formatter.hpp b/common/formatter.hpp index 75a407f..55ed28a 100644 --- a/common/formatter.hpp +++ b/common/formatter.hpp @@ -153,9 +153,9 @@ public: WindowsAttribute(WORD _wAttributes) : wAttributes(_wAttributes) {} void apply(std::ostream& os) const { DWORD nStdHandleOutput; - if (os == std::cout) { + if (&os == &std::cout) { nStdHandleOutput = STD_OUTPUT_HANDLE; - } else if (os == std::cerr) { + } else if (&os == &std::cerr) { nStdHandleOutput = STD_ERROR_HANDLE; } else { return; diff --git a/common/trace_file_snappy.cpp b/common/trace_file_snappy.cpp index 68673c6..41d86ea 100644 --- a/common/trace_file_snappy.cpp +++ b/common/trace_file_snappy.cpp @@ -54,6 +54,7 @@ #include #include +#include #include #include -- 2.43.0