From d4a4885ed9d0bde8eb29882735a497be9722cae1 Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Sat, 10 Sep 2016 19:45:41 +0300 Subject: [PATCH] Fix for undefined BOOST_NORETURN --- include/boost/config/suffix.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/boost/config/suffix.hpp b/include/boost/config/suffix.hpp index 7ee41551..3da09d9a 100644 --- a/include/boost/config/suffix.hpp +++ b/include/boost/config/suffix.hpp @@ -628,12 +628,14 @@ namespace std{ using ::type_info; } # if __has_cpp_attribute(noreturn) # define BOOST_NORETURN [[noreturn]] # endif -# else -# define BOOST_NO_NORETURN -# define BOOST_NORETURN # endif #endif +#if !defined(BOOST_NORETURN) +# define BOOST_NO_NORETURN +# define BOOST_NORETURN +#endif + // Branch prediction hints // These macros are intended to wrap conditional expressions that yield true or false //