From 79e3bf7175b51c4a8c105b1c9f12d2d175174345 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Fri, 12 Oct 2018 12:17:45 +0200 Subject: [PATCH] _set_abort_behavior not supported in old MSVC Last patch before deprecating old MSVC compilers --- include/boost/core/lightweight_test.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/core/lightweight_test.hpp b/include/boost/core/lightweight_test.hpp index 0dbcf6b..45736cb 100644 --- a/include/boost/core/lightweight_test.hpp +++ b/include/boost/core/lightweight_test.hpp @@ -47,7 +47,7 @@ public: test_result() : report_(false) , errors_(0) { -#if defined(_MSC_VER) +#if defined(_MSC_VER) && (_MSC_VER > 1310) ::_set_abort_behavior(0, _WRITE_ABORT_MSG | _CALL_REPORTFAULT); #endif }