Fix build for external boost 1.56.0
[alexxy/gromacs.git] / src / gromacs / utility / gmxassert.h
index 0259b611f14a354b6b2bed1d9f8a6e6410d4eed5..941faaeaa43ba1a73fc4f7355dd643fccbcb2284 100644 (file)
@@ -44,7 +44,6 @@
 #define GMX_UTILITY_GMXASSERT_H
 
 #include <boost/current_function.hpp>
-#include <boost/exception/detail/attribute_noreturn.hpp>
 
 //! \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);