summaryrefslogtreecommitdiffstats
path: root/osdep/compiler.h
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2023-10-20 22:32:03 +0600
committerDudemanguy <random342@airmail.cc>2023-10-23 00:10:42 +0000
commit8dc12f1d5bb524edf4bb7121bb3f3b2ffa32c73d (patch)
tree2298a2f08ec35c3a09a3cad7cd41a588232a3a45 /osdep/compiler.h
parenta1f465b582c375ee639e863dd54d9e49aee702ce (diff)
downloadmpv-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.h6
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