summaryrefslogtreecommitdiff
path: root/boost/exception/detail/exception_ptr.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/exception/detail/exception_ptr.hpp')
-rw-r--r--boost/exception/detail/exception_ptr.hpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/boost/exception/detail/exception_ptr.hpp b/boost/exception/detail/exception_ptr.hpp
index b6ccf7e18c..5e5a2679b8 100644
--- a/boost/exception/detail/exception_ptr.hpp
+++ b/boost/exception/detail/exception_ptr.hpp
@@ -25,7 +25,7 @@
#include <stdexcept>
#include <new>
#include <ios>
-#include <cstdlib>
+#include <stdlib.h>
namespace
boost
@@ -457,7 +457,12 @@ boost
BOOST_ASSERT(p);
p.ptr_->rethrow();
BOOST_ASSERT(0);
- std::abort();
+ #if defined(UNDER_CE)
+ // some CE platforms don't define ::abort()
+ exit(-1);
+ #else
+ abort();
+ #endif
}
inline