From d6566f9d2fdcfe5e1329c7bc699e1e6d85559839 Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Mon, 4 Jul 2011 09:14:15 +0100 Subject: [PATCH] regen single header with __debugbreak fix --- single_include/catch.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }