From 5e269189b404c93c60e1c2d2842e2d2ee0d9cd95 Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 3 Jan 2019 12:31:27 +0000 Subject: [PATCH] Rename catch global variable to prevent clashes --- renderdoc/3rdparty/catch/catch.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/renderdoc/3rdparty/catch/catch.cpp b/renderdoc/3rdparty/catch/catch.cpp index b33cec11d..a53f2160e 100644 --- a/renderdoc/3rdparty/catch/catch.cpp +++ b/renderdoc/3rdparty/catch/catch.cpp @@ -265,21 +265,21 @@ public: } }; -std::ostream *stream = NULL; +std::ostream *catch_stream = NULL; namespace Catch { std::ostream &cout() { - return *stream; + return *catch_stream; } std::ostream &cerr() { - return *stream; + return *catch_stream; } std::ostream &clog() { - return *stream; + return *catch_stream; } } @@ -288,7 +288,7 @@ extern "C" RENDERDOC_API int RENDERDOC_CC RENDERDOC_RunUnitTests(const rdcstr &c { LogOutputter logbuf; std::ostream logstream(&logbuf); - stream = &logstream; + catch_stream = &logstream; Catch::Session session;