forked from boostorg/config
Minor workaround for clang-win32.
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user