From 7787923d059b6509db0d03d1f0ce7e785db895ae Mon Sep 17 00:00:00 2001 From: whitequark Date: Sun, 9 Oct 2016 20:02:37 +0000 Subject: [PATCH] MinGW: unbreak the test harness. _set_abort_behavior() is an MSVCRT function, not a Win32 one, and it is not available in MinGW builds. --- test/harness.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/harness.cpp b/test/harness.cpp index 3585c08..e227006 100644 --- a/test/harness.cpp +++ b/test/harness.cpp @@ -271,8 +271,10 @@ int Test::Case::Register(Test::Case testCase) { } int main(int argc, char **argv) { -#if defined(WIN32) +#if defined(_MSC_VER) _set_abort_behavior(0, _WRITE_ABORT_MSG); +#endif +#if defined(WIN32) InitHeaps(); #endif