From: Khem Raj <raj.khem@gmail.com>
To: musl@lists.openwall.com
Cc: Khem Raj <raj.khem@gmail.com>
Subject: [PATCH 3/3] stddef: Define max_align_t
Date: Sun, 27 Apr 2014 18:43:54 -0700 [thread overview]
Message-ID: <1398649434-23560-3-git-send-email-raj.khem@gmail.com> (raw)
In-Reply-To: <1398649434-23560-1-git-send-email-raj.khem@gmail.com>
c++11 defines is and libstdc++ from gcc 4.9 now needs it
Signed-off-by: Khem Raj <raj.khem@gmail.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
next prev parent reply other threads:[~2014-04-28 1:43 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-28 1:43 [PATCH 1/3] bits/socket.h: Define SO_RCVBUFFORCE for mips Khem Raj
2014-04-28 1:43 ` [PATCH 2/3] Add soname to dynamic section Khem Raj
2014-04-28 2:00 ` Rich Felker
2014-04-28 5:02 ` Khem Raj
2014-04-28 5:54 ` Isaac Dunham
2014-04-28 6:00 ` Khem Raj
2014-04-28 6:22 ` Isaac Dunham
2014-04-28 6:32 ` Timo Teras
2014-04-28 7:20 ` Khem Raj
2014-04-28 14:28 ` Rich Felker
2014-04-28 1:43 ` Khem Raj [this message]
2014-04-28 2:03 ` [PATCH 3/3] stddef: Define max_align_t Rich Felker
2014-04-28 5:51 ` Khem Raj
2014-04-28 10:11 ` Szabolcs Nagy
2014-04-28 12:22 ` Jens Gustedt
2014-04-28 13:26 ` Szabolcs Nagy
2014-04-28 13:59 ` Jens Gustedt
2014-04-28 14:14 ` Rich Felker
2014-04-28 14:29 ` [PATCH 1/3] bits/socket.h: Define SO_RCVBUFFORCE for mips Rich Felker
2014-04-28 14:54 ` Khem Raj
2014-04-30 18:48 ` Rich Felker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1398649434-23560-3-git-send-email-raj.khem@gmail.com \
--to=raj.khem@gmail.com \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).