Workaround for broken __has_cpp_attribute in Oracle-12.5 compiler

This commit is contained in:
John Maddock
2016-09-09 12:25:43 +00:00
parent a9e325b2e0
commit b457022699

View File

@ -624,7 +624,7 @@ namespace std{ using ::type_info; }
# define BOOST_NORETURN __declspec(noreturn) # define BOOST_NORETURN __declspec(noreturn)
# elif defined(__GNUC__) # elif defined(__GNUC__)
# define BOOST_NORETURN __attribute__ ((__noreturn__)) # define BOOST_NORETURN __attribute__ ((__noreturn__))
# elif defined(__has_cpp_attribute) # elif defined(__has_cpp_attribute) && !defined(__SUNPRO_CC)
# if __has_cpp_attribute(noreturn) # if __has_cpp_attribute(noreturn)
# define BOOST_NORETURN [[noreturn]] # define BOOST_NORETURN [[noreturn]]
# endif # endif