From b3640aa019fc8865223d373f0f30b73e0e0a53bf Mon Sep 17 00:00:00 2001 From: David Deakins Date: Wed, 25 Apr 2012 03:54:37 +0000 Subject: [PATCH] For Windows CE, rethrow_exception should use ::exit instead of ::abort (the CRT on Windows CE does not include ::abort). [SVN r78187] --- include/boost/exception/detail/exception_ptr.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/boost/exception/detail/exception_ptr.hpp b/include/boost/exception/detail/exception_ptr.hpp index b312673..84abc7a 100644 --- a/include/boost/exception/detail/exception_ptr.hpp +++ b/include/boost/exception/detail/exception_ptr.hpp @@ -457,7 +457,12 @@ boost BOOST_ASSERT(p); p.ptr_->rethrow(); BOOST_ASSERT(0); - abort(); + #if defined(UNDER_CE) + // some CE platforms don't define ::abort(), let alone std::abort() + exit(-1); + #else + abort(); + #endif } inline