diff --git a/src/flint.h.in b/src/flint.h.in index a574fc8a26..5b95ea5fe3 100644 --- a/src/flint.h.in +++ b/src/flint.h.in @@ -156,12 +156,10 @@ typedef const ulong * nn_srcptr; # define FLINT_DEPRECATED #endif -#if defined(__cplusplus) +#if defined(__cplusplus) || ( __STDC_VERSION__ >= 202300L ) # define FLINT_NORETURN [[noreturn]] -#elif __STDC_VERSION__ < 202300L -# define FLINT_NORETURN _Noreturn #else -# define FLINT_NORETURN noreturn +# define FLINT_NORETURN _Noreturn #endif #if FLINT_USES_TLS