From 7cfe6eb078aa70868b1f5c320c08cb113d3e6135 Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Mon, 4 Jul 2011 09:09:03 +0100 Subject: [PATCH] Only use __debugbreak from MSVC (rather than any compiler on Windows) --- include/internal/catch_debugger.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/internal/catch_debugger.hpp b/include/internal/catch_debugger.hpp index d318ab2c..54e4f67c 100644 --- a/include/internal/catch_debugger.hpp +++ b/include/internal/catch_debugger.hpp @@ -86,7 +86,7 @@ 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(); }