macro: Use C11 noreturn only

No need to provide a fallback as we compile with gnu11.
This commit is contained in:
Jan Janssen
2022-05-21 15:01:47 +01:00
committed by Luca Boccassi
parent 1246d09705
commit 351b30dae0
-8
View File
@@ -24,15 +24,7 @@
#else
#define _fallthrough_
#endif
/* Define C11 noreturn without <stdnoreturn.h> and even on older gcc
* compiler versions */
#ifndef _noreturn_
#if __STDC_VERSION__ >= 201112L
#define _noreturn_ _Noreturn
#else
#define _noreturn_ __attribute__((__noreturn__))
#endif
#endif
#define XSTRINGIFY(x) #x
#define STRINGIFY(x) XSTRINGIFY(x)