mirror of https://github.com/mpv-player/mpv
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:
parent
a1f465b582
commit
8dc12f1d5b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue