fix accidental header namespace inclusion

pull/541/head
Stanislaw Halik 6 years ago
parent f6c8842457
commit c5c160870d

@ -2,6 +2,12 @@
#include <components/crashcatcher/crashcatcher.hpp> #include <components/crashcatcher/crashcatcher.hpp>
#ifdef _WIN32
# undef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
# include <windows.h>
#endif
namespace Debug namespace Debug
{ {
#ifdef _WIN32 #ifdef _WIN32

@ -10,6 +10,12 @@
#include "debuglog.hpp" #include "debuglog.hpp"
#if defined _WIN32 && defined _DEBUG
# undef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
# include <windows.h>
#endif
namespace Debug namespace Debug
{ {
// ANSI colors for terminal // ANSI colors for terminal
@ -47,11 +53,7 @@ namespace Debug
bool attachParentConsole(); bool attachParentConsole();
#endif #endif
#if defined(_WIN32) && defined(_DEBUG) #if defined _WIN32 && defined _DEBUG
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN 1
#endif // !WIN32_LEAN_AND_MEAN
#include <Windows.h>
class DebugOutput : public DebugOutputBase class DebugOutput : public DebugOutputBase
{ {
public: public:

Loading…
Cancel
Save