From 44e60b708be5aedfa12e71615861144ba3eaeb89 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 8 Dec 2018 03:13:18 +0100 Subject: [PATCH] fix missing _WIN32 guard --- components/debug/win32.cpp | 4 ++++ components/debug/win32.hpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/components/debug/win32.cpp b/components/debug/win32.cpp index 9b038343c3..976d5a4b08 100644 --- a/components/debug/win32.cpp +++ b/components/debug/win32.cpp @@ -1,3 +1,5 @@ +#ifdef _WIN32 + #include "win32.hpp" #undef _CRT_SECURE_NO_WARNINGS @@ -54,3 +56,5 @@ bool attachParentConsole() } } // ns Debug + +#endif diff --git a/components/debug/win32.hpp b/components/debug/win32.hpp index 5a103cce54..d3c8d40942 100644 --- a/components/debug/win32.hpp +++ b/components/debug/win32.hpp @@ -1,5 +1,9 @@ #pragma once +#ifdef _WIN32 + namespace Debug { bool attachParentConsole(); } + +#endif