From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4964 Path: news.gmane.org!not-for-mail From: Khem Raj Newsgroups: gmane.linux.lib.musl.general Subject: [PATCH 3/3] stddef: Define max_align_t Date: Sun, 27 Apr 2014 18:43:54 -0700 Message-ID: <1398649434-23560-3-git-send-email-raj.khem@gmail.com> References: <1398649434-23560-1-git-send-email-raj.khem@gmail.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1398649343 31915 80.91.229.3 (28 Apr 2014 01:42:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Apr 2014 01:42:23 +0000 (UTC) Cc: Khem Raj To: musl@lists.openwall.com Original-X-From: musl-return-4968-gllmg-musl=m.gmane.org@lists.openwall.com Mon Apr 28 03:42:15 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1WeaaF-00005t-Gg for gllmg-musl@plane.gmane.org; Mon, 28 Apr 2014 03:42:15 +0200 Original-Received: (qmail 22440 invoked by uid 550); 28 Apr 2014 01:42:11 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 22253 invoked from network); 28 Apr 2014 01:42:08 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=n2yvlefwcCOlOfI6zDfpnQs0NvR89rvfTq9SYcGaJS4=; b=RiozmEcRtK8Hq/RniRRdy5+KAprbAXE5e/G2YC5qzjcIWJrGtNLRUzaw/Rn5FWjovG MrE+YZCf9RxolKSOOQgOYUMZja4a+oP3DZy9aRqZWnWvloH0ASJklO/nLIKA3QLXED7f sIFIZDxzUFBAJ2bEq+1Bu3qoyHJDLYpIj8HjMoqCLZxOf38yEi0UYdcZCUFM2iLXNgXl RB6rqR3YNzHD5KozzukiCl/6CQnabFsj9hALauqk2Usg1PYXbFoioCSy1ySgLGs6zAS3 ZAwfordjSYEfZoou0KbNYB5ULgGpUaHXgPw/U4U3ytDUPWaDtJ9p9x0jFEEOhPy5o4KD BPtw== X-Received: by 10.67.14.231 with SMTP id fj7mr22238925pad.115.1398649316628; Sun, 27 Apr 2014 18:41:56 -0700 (PDT) X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1398649434-23560-1-git-send-email-raj.khem@gmail.com> Xref: news.gmane.org gmane.linux.lib.musl.general:4964 Archived-At: c++11 defines is and libstdc++ from gcc 4.9 now needs it Signed-off-by: Khem Raj 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