diff options
Diffstat (limited to 'src/util/macros.h')
-rw-r--r-- | src/util/macros.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util/macros.h b/src/util/macros.h index aa36253217c..d6e37053b15 100644 --- a/src/util/macros.h +++ b/src/util/macros.h @@ -171,6 +171,12 @@ do { \ #define ATTRIBUTE_RETURNS_NONNULL #endif +#ifdef HAVE_FUNC_ATTRIBUTE_NORETURN +#define NORETURN __attribute__((__noreturn__)) +#else +#define NORETURN +#endif + #ifdef __cplusplus /** * Macro function that evaluates to true if T is a trivially |