Use noreturn attribute only when MZ_DECLARE_NORETURN
This commit is contained in:
parent
5b837b895f
commit
ef8b31b527
|
@ -252,10 +252,7 @@ extern "C"
|
|||
{
|
||||
#endif
|
||||
|
||||
/* The reason we need two preprocessor variables is that, in gcc/clang the
|
||||
function attribute comes after the function declaration. However,
|
||||
in MSVC the function attribute comes before the function declaration. */
|
||||
#ifdef __GNUC__
|
||||
#if defined(MZ_DECLARE_NORETURN) && defined(__GNUC__)
|
||||
#define NORETURN __attribute__((__noreturn__))
|
||||
#else
|
||||
#define NORETURN
|
||||
|
|
Loading…
Reference in New Issue
Block a user