diff --git a/single_include/catch.hpp b/single_include/catch.hpp index b3c17a62..3b487bb2 100644 --- a/single_include/catch.hpp +++ b/single_include/catch.hpp @@ -968,7 +968,7 @@ namespace Catch inline void BreakIntoDebugger(){} #endif -#elif defined(CATCH_PLATFORM_WINDOWS) +#elif defined(_MSC_VER) extern "C" __declspec(dllimport) int __stdcall IsDebuggerPresent(); extern "C" __declspec(dllimport) void __stdcall OutputDebugStringA( const char* ); #define BreakIntoDebugger() if (IsDebuggerPresent() ) { __debugbreak(); }