diff --git a/components/debug/win32.cpp b/components/debug/win32.cpp index 9b038343c..976d5a4b0 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 5a103cce5..d3c8d4094 100644 --- a/components/debug/win32.hpp +++ b/components/debug/win32.hpp @@ -1,5 +1,9 @@ #pragma once +#ifdef _WIN32 + namespace Debug { bool attachParentConsole(); } + +#endif