diff --git a/compiler.h b/compiler.h index a3a5039d..312b027a 100644 --- a/compiler.h +++ b/compiler.h @@ -170,4 +170,13 @@ char *strsep(char **, const char *); # define unlikely(x) (!!(x)) #endif +/* + * How to tell the compiler that a function doesn't return + */ +#ifdef __GNUC__ +# define noreturn void __attribute__((noreturn)) +#else +# define noreturn void +#endif + #endif /* NASM_COMPILER_H */