diff options
author | NRK <nrk@disroot.org> | 2023-10-20 22:32:03 +0600 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-10-23 00:10:42 +0000 |
commit | 8dc12f1d5bb524edf4bb7121bb3f3b2ffa32c73d (patch) | |
tree | 2298a2f08ec35c3a09a3cad7cd41a588232a3a45 /osdep/compiler.h | |
parent | a1f465b582c375ee639e863dd54d9e49aee702ce (diff) | |
download | mpv-8dc12f1d5bb524edf4bb7121bb3f3b2ffa32c73d.tar.bz2 mpv-8dc12f1d5bb524edf4bb7121bb3f3b2ffa32c73d.tar.xz |
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.
Diffstat (limited to 'osdep/compiler.h')
-rw-r--r-- | osdep/compiler.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/osdep/compiler.h b/osdep/compiler.h index 37431e60eb..2908f6e0f2 100644 --- a/osdep/compiler.h +++ b/osdep/compiler.h @@ -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 |