From cf668424198af5ab1ed4e9f75df528c0e09c4be1 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 5 Sep 2018 08:39:35 +0300 Subject: [PATCH] MinGW doesn't have _exit either --- include/boost/core/lightweight_test.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/boost/core/lightweight_test.hpp b/include/boost/core/lightweight_test.hpp index 5c8cb70..2fa329f 100644 --- a/include/boost/core/lightweight_test.hpp +++ b/include/boost/core/lightweight_test.hpp @@ -56,8 +56,10 @@ public: if (!report_) { BOOST_LIGHTWEIGHT_TEST_OSTREAM << "main() should return report_errors()" << std::endl; -#if defined(_MSC_VER) || defined(__MINGW32__) +#if defined(_MSC_VER) ::_exit( 3 ); +#elif defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR) + std::abort(); #else ::_Exit( 3 ); #endif