diff --git a/common/Log.cpp b/common/Log.cpp index 0153eff14e..18a0137f56 100644 --- a/common/Log.cpp +++ b/common/Log.cpp @@ -225,12 +225,12 @@ namespace Log std::flush(std::cerr); fflush(stderr); } -#endif bool isShutdownCalled() { return IsShutdown; } +#endif } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/common/Log.hpp b/common/Log.hpp index 6bf85129e2..df0a06536a 100644 --- a/common/Log.hpp +++ b/common/Log.hpp @@ -61,6 +61,8 @@ namespace Log void shutdown(); /// Was static shutdown() called? If so, producing more logs should be avoided. bool isShutdownCalled(); +#else + constexpr bool isShutdownCalled() { return false; } #endif char* prefix(char* buffer, std::size_t len, const char* level);