From 065a3b35fccccd93895203f26a1f8ba80de95661 Mon Sep 17 00:00:00 2001 From: Petr Skocik Date: Fri, 11 Jan 2019 11:17:49 +0100 Subject: [PATCH] Make stddef.h expose max_align_t with -std= >= c11 --- include/stddef.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/stddef.h b/include/stddef.h index 694d5037..f8561196 100644 --- a/include/stddef.h +++ b/include/stddef.h @@ -8,6 +8,10 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t; typedef __PTRDIFF_TYPE__ intptr_t; typedef __SIZE_TYPE__ uintptr_t; +#if __STDC_VERSION__ >= 201112L +typedef union { long long __ll; long double __ld; } max_align_t; +#endif + #ifndef __int8_t_defined #define __int8_t_defined typedef signed char int8_t;