diff options
| author | Robert Clausecker <fuz@FreeBSD.org> | 2025-12-05 00:25:10 +0100 |
|---|---|---|
| committer | Robert Clausecker <fuz@FreeBSD.org> | 2025-12-05 00:25:10 +0100 |
| commit | fc88be257e30c3e3c01f25ec3a3a6e7933b40c54 (patch) | |
| tree | 6cfa49c8805eed08c94e62c82efc6b4b39f285b9 /include | |
| parent | 8102307c7bf76b94dd452e479670210d53331b3a (diff) | |
Revert "stddef.h: add unreachable() for C23 compliance"
Seems like a number of ports are *really* unhappy with this new
macro. These ports will have to be fixed and the patch reworked
to perhaps not affect C++ (see D54041). A general discussion on
how we expose new language features may also need to take place.
Reported by: many people
Approved by: markj (mentor)
This reverts commit b381d0980221b476cadbef862a8e5973d675fb7a.
Diffstat (limited to 'include')
| -rw-r--r-- | include/stddef.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/stddef.h b/include/stddef.h index 2ac8e9fe3f77..3ba9a9946b01 100644 --- a/include/stddef.h +++ b/include/stddef.h @@ -61,10 +61,6 @@ typedef __max_align_t max_align_t; #endif #endif -#if __ISO_C_VISIBLE >= 2023 -#define unreachable(x) __unreachable(x) -#endif - #ifndef offsetof #define offsetof(type, field) __builtin_offsetof(type, field) #endif |
