From bb3aff28ced9ace76716ebe6e0322f51705d4fcb Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 12 Apr 2021 16:11:32 +1000 Subject: [PATCH] debug/common: don't include iostream --- debug/assert.hpp | 3 +++ debug/common.hpp | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debug/assert.hpp b/debug/assert.hpp index 89db782c..f867c7d7 100644 --- a/debug/assert.hpp +++ b/debug/assert.hpp @@ -18,6 +18,9 @@ #include +#ifndef NDEBUG +#include +#endif /////////////////////////////////////////////////////////////////////////////// #ifdef COMPILER_GCC diff --git a/debug/common.hpp b/debug/common.hpp index bd81ea99..af0b59ff 100644 --- a/debug/common.hpp +++ b/debug/common.hpp @@ -29,7 +29,6 @@ /// refer to variables which do not always exist, and current compiler /// implementations are a little picky here. #ifndef NDEBUG - #include #define DEBUG_ONLY(X) do { X; } while (0) #else #define DEBUG_ONLY(X) do { ; } while (0)