From 5ea7b4a6ba7974fee4afa4748460ac864f335524 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sun, 5 Jul 2009 09:25:58 +0000 Subject: [PATCH] Added support for GCC. [SVN r54668] --- include/boost/exception/detail/attribute_noreturn.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/boost/exception/detail/attribute_noreturn.hpp b/include/boost/exception/detail/attribute_noreturn.hpp index 90a0306..1cb0763 100644 --- a/include/boost/exception/detail/attribute_noreturn.hpp +++ b/include/boost/exception/detail/attribute_noreturn.hpp @@ -10,6 +10,8 @@ #if defined(BOOST_MSVC) #define BOOST_ATTRIBUTE_NORETURN __declspec(noreturn) +#elif defined(__GNUC__) +#define BOOST_ATTRIBUTE_NORETURN __attribute__((noreturn)) #else #define BOOST_ATTRIBUTE_NORETURN #endif