diff options
-rw-r--r-- | build/has/max-align-t.c | 8 | ||||
-rw-r--r-- | build/header.mk | 1 | ||||
-rw-r--r-- | src/prelude.h | 15 |
3 files changed, 0 insertions, 24 deletions
diff --git a/build/has/max-align-t.c b/build/has/max-align-t.c deleted file mode 100644 index 96165ce..0000000 --- a/build/has/max-align-t.c +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright © Tavian Barnes <tavianator@tavianator.com> -// SPDX-License-Identifier: 0BSD - -#include <stddef.h> - -int main(void) { - return _Alignof(max_align_t); -} diff --git a/build/header.mk b/build/header.mk index a449b77..fb8246d 100644 --- a/build/header.mk +++ b/build/header.mk @@ -30,7 +30,6 @@ HEADERS := \ gen/has/getmntinfo.h \ gen/has/getprogname-gnu.h \ gen/has/getprogname.h \ - gen/has/max-align-t.h \ gen/has/pipe2.h \ gen/has/posix-getdents.h \ gen/has/posix-spawn-addfchdir-np.h \ diff --git a/src/prelude.h b/src/prelude.h index 7a8478c..3521fe8 100644 --- a/src/prelude.h +++ b/src/prelude.h @@ -154,21 +154,6 @@ extern const char bfs_version[]; #endif /** - * Polyfill max_align_t if we don't already have it. - */ -#if !BFS_HAS_MAX_ALIGN_T -typedef union { -# ifdef __BIGGEST_ALIGNMENT__ - alignas(__BIGGEST_ALIGNMENT__) char c; -# else - long double ld; - long long ll; - void *ptr; -# endif -} max_align_t; -#endif - -/** * Alignment specifier that avoids false sharing. */ #define cache_align alignas(FALSE_SHARING_SIZE) |