mirror of
https://github.com/boostorg/config.git
synced 2025-07-30 04:17:16 +02:00
Minor workaround for clang-win32.
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
// compilers insist on it, while other issue a
|
||||
// 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>
|
||||
#endif
|
||||
|
||||
@ -20,7 +20,7 @@ namespace boost_no_unreachable_return_detection{
|
||||
|
||||
int checker()
|
||||
{
|
||||
#if defined( BOOST_NO_EXCEPTIONS ) && !defined( _MSC_VER )
|
||||
#if defined( BOOST_NO_EXCEPTIONS ) && (!defined( _MSC_VER ) || defined(__clang__))
|
||||
abort();
|
||||
#else
|
||||
throw 0;
|
||||
|
Reference in New Issue
Block a user