From 8dc12f1d5bb524edf4bb7121bb3f3b2ffa32c73d Mon Sep 17 00:00:00 2001 From: NRK Date: Fri, 20 Oct 2023 22:32:03 +0600 Subject: osdep: remove alignof emulation it's unused. and since C11 is pretty freely used now, new code can just use _Alignof or include directly. --- osdep/compiler.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'osdep/compiler.h') 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 -#else -#define alignof(x) (offsetof(struct {char unalign_; x u;}, u)) -#endif - #ifdef __GNUC__ #define MP_ASSERT_UNREACHABLE() (assert(!"unreachable"), __builtin_unreachable()) #else -- cgit v1.2.3