From f9498086969d917a85452560173a0d9db3604c32 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 20 May 2024 13:56:16 -0400 Subject: prelude: Remove max_align_t polyfill This has been fixed in Cosmopolitan. Link: https://github.com/jart/cosmopolitan/issues/944 --- src/prelude.h | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/prelude.h') diff --git a/src/prelude.h b/src/prelude.h index 7a8478c..3521fe8 100644 --- a/src/prelude.h +++ b/src/prelude.h @@ -153,21 +153,6 @@ extern const char bfs_version[]; # define TRUE_SHARING_SIZE 64 #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. */ -- cgit v1.2.3