Only use __debugbreak from MSVC (rather than any compiler on Windows)

This commit is contained in:
Phil Nash 2011-07-04 09:09:03 +01:00
parent 1adebefb50
commit 7cfe6eb078
1 changed files with 1 additions and 1 deletions

View File

@ -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(); }