Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorPhil Nash2011-07-04 09:09:03 +0100
committerPhil Nash2011-07-04 09:09:03 +0100
commit7cfe6eb078aa70868b1f5c320c08cb113d3e6135 (patch)
tree4b73de955284ca28cba406f32092b049e5c3c441 /include
parent1adebefb50d33569d792daed16c541949358b7cd (diff)
downloadcatch3-7cfe6eb078aa70868b1f5c320c08cb113d3e6135.tar.gz
Only use __debugbreak from MSVC (rather than any compiler on Windows)
Diffstat (limited to 'include')
-rw-r--r--include/internal/catch_debugger.hpp2
1 files changed, 1 insertions, 1 deletions
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(); }