osdep: remove alignof emulation

it's unused. and since C11 is pretty freely used now, new code can just
use _Alignof or include <stdalign.h> directly.
This commit is contained in:
NRK 2023-10-20 22:32:03 +06:00 committed by Dudemanguy
parent a1f465b582
commit 8dc12f1d5b
1 changed files with 0 additions and 6 deletions

View File

@ -19,12 +19,6 @@
#define PRINTF_ATTRIBUTE(a1, a2) __attribute__ ((format (gnu_printf, a1, a2)))
#endif
#if __STDC_VERSION__ >= 201112L
#include <stdalign.h>
#else
#define alignof(x) (offsetof(struct {char unalign_; x u;}, u))
#endif
#ifdef __GNUC__
#define MP_ASSERT_UNREACHABLE() (assert(!"unreachable"), __builtin_unreachable())
#else