diff --git a/include/libassert/assert.hpp b/include/libassert/assert.hpp index 53ba850..9c68910 100644 --- a/include/libassert/assert.hpp +++ b/include/libassert/assert.hpp @@ -169,7 +169,7 @@ namespace libassert { struct assertion_info; - LIBASSERT_EXPORT [[noreturn]] void default_failure_handler(const assertion_info& info); + [[noreturn]] LIBASSERT_EXPORT void default_failure_handler(const assertion_info& info); LIBASSERT_EXPORT void set_failure_handler(void (*handler)(const assertion_info&)); diff --git a/src/assert.cpp b/src/assert.cpp index f6464e0..5ac22f2 100644 --- a/src/assert.cpp +++ b/src/assert.cpp @@ -428,7 +428,7 @@ namespace libassert { } - LIBASSERT_ATTR_COLD LIBASSERT_EXPORT [[noreturn]] + [[noreturn]] LIBASSERT_ATTR_COLD LIBASSERT_EXPORT void default_failure_handler(const assertion_info& info) { enable_virtual_terminal_processing_if_needed(); // for terminal colors on windows std::string message = info.to_string(