From be369784e1d1e71134dfe951e43a94d1d0c7de81 Mon Sep 17 00:00:00 2001 From: zrj Date: Sat, 14 Jan 2017 11:39:35 +0200 Subject: [PATCH] : Add max_align_t guards for future reference. There are some confusion how this c++11 feature should be implemented. --- include/stddef.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/stddef.h b/include/stddef.h index 23b0d538f8..92855e2c10 100644 --- a/include/stddef.h +++ b/include/stddef.h @@ -68,10 +68,13 @@ typedef __wchar_t wchar_t; /* open group, _GCC_WCHAR_T OK */ #if (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) || \ (defined(__cplusplus) && __cplusplus >= 201103L)) +#ifndef _MAX_ALIGN_T_DECLARED +#define _MAX_ALIGN_T_DECLARED typedef struct { long long __max_align_nonce1 __aligned(__alignof(long long)); long double __max_align_nonce2 __aligned(__alignof(long double)); } max_align_t; #endif +#endif #endif /* _STDDEF_H_ */ -- 2.11.4.GIT