Minor workaround for clang-win32.

This commit is contained in:
jzmaddock
2016-03-26 18:20:19 +00:00
parent 9ea6b3fb49
commit 733e24c081

View File

@@ -12,7 +12,7 @@
// compilers insist on it, while other issue a // compilers insist on it, while other issue a
// bunch of warnings if it is in fact present. // bunch of warnings if it is in fact present.
#if defined( BOOST_NO_EXCEPTIONS ) && !defined( _MSC_VER ) #if defined( BOOST_NO_EXCEPTIONS )
# include <stdlib.h> # include <stdlib.h>
#endif #endif
@@ -20,7 +20,7 @@ namespace boost_no_unreachable_return_detection{
int checker() int checker()
{ {
#if defined( BOOST_NO_EXCEPTIONS ) && !defined( _MSC_VER ) #if defined( BOOST_NO_EXCEPTIONS ) && (!defined( _MSC_VER ) || defined(__clang__))
abort(); abort();
#else #else
throw 0; throw 0;