diff options
-rw-r--r-- | rts/include/Rts.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/rts/include/Rts.h b/rts/include/Rts.h index 90d8e5b324..516c4683da 100644 --- a/rts/include/Rts.h +++ b/rts/include/Rts.h @@ -167,7 +167,10 @@ void _warnFail(const char *filename, unsigned int linenum); #endif /* DEBUG */ #if __STDC_VERSION__ >= 201112L -#define GHC_STATIC_ASSERT(x, msg) static_assert((x), msg) +// `_Static_assert` is provided by C11 but is deprecated and replaced by +// `static_assert` in C23. Perhaps some day we should instead use the latter. +// See #22777. +#define GHC_STATIC_ASSERT(x, msg) _Static_assert((x), msg) #else #define GHC_STATIC_ASSERT(x, msg) #endif |