From bd3d0eafbb362fbc0f140c228da85791a473e44e Mon Sep 17 00:00:00 2001 From: Daniel Pfeifer Date: Thu, 1 Sep 2016 20:19:50 +0200 Subject: cmCTest: don't redefine cout and cerr The definitions have been introduced to ensure that cout and cerr are not used in certain files. However, this limitation does not apply to all source files that require cmCTest.h to be included. Furthermore, the definitions cause side effects depending on the include order. In total, the definitions do more harm than good. Remove them. --- Source/cmCTest.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Source/cmCTest.h b/Source/cmCTest.h index 20f5caf..9d661d4 100644 --- a/Source/cmCTest.h +++ b/Source/cmCTest.h @@ -45,16 +45,6 @@ class cmXMLWriter; cmCTestLog_msg.str().c_str(), suppress); \ } while (0) -#ifdef cerr -#undef cerr -#endif -#define cerr no_cerr_use_cmCTestLog - -#ifdef cout -#undef cout -#endif -#define cout no_cout_use_cmCTestLog - /** \class cmCTest * \brief Represents a ctest invocation. * -- cgit v0.12