X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=blobdiff_plain;f=src%2Fgromacs%2Futility%2Fgmxassert.h;h=941faaeaa43ba1a73fc4f7355dd643fccbcb2284;hb=f878c887a27dca78bff7b158203e729e8ee65444;hp=0259b611f14a354b6b2bed1d9f8a6e6410d4eed5;hpb=5c0d31794698b87ae538400fc9123feccc9a15f0;p=alexxy%2Fgromacs.git diff --git a/src/gromacs/utility/gmxassert.h b/src/gromacs/utility/gmxassert.h index 0259b611f1..941faaeaa4 100644 --- a/src/gromacs/utility/gmxassert.h +++ b/src/gromacs/utility/gmxassert.h @@ -44,7 +44,6 @@ #define GMX_UTILITY_GMXASSERT_H #include -#include //! \addtogroup module_utility //! \{ @@ -100,7 +99,11 @@ namespace internal * * \ingroup module_utility */ -BOOST_ATTRIBUTE_NORETURN +#if defined(_MSC_VER) +__declspec(noreturn) +#elif defined(__GNUC__) +__attribute__((__noreturn__)) +#endif void assertHandler(const char *condition, const char *msg, const char *func, const char *file, int line);