|
Message-Id: <1398649434-23560-3-git-send-email-raj.khem@gmail.com> Date: Sun, 27 Apr 2014 18:43:54 -0700 From: Khem Raj <raj.khem@...il.com> To: musl@...ts.openwall.com Cc: Khem Raj <raj.khem@...il.com> Subject: [PATCH 3/3] stddef: Define max_align_t c++11 defines is and libstdc++ from gcc 4.9 now needs it Signed-off-by: Khem Raj <raj.khem@...il.com> Upstream-Status: Pending --- include/stddef.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/stddef.h b/include/stddef.h index 0a32919..788227a 100644 --- a/include/stddef.h +++ b/include/stddef.h @@ -19,4 +19,9 @@ #define offsetof(type, member) ((size_t)( (char *)&(((type *)0)->member) - (char *)0 )) #endif +typedef struct { + long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); + long double __max_align_ld __attribute__((__aligned__(__alignof__(long double)))); +} max_align_t; + #endif -- 1.7.10.4
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.