[packages/crossmingw64-headers] - added stddef-max_align_t patch (C++ 11 max_align_t support); release 10

qboosh qboosh at pld-linux.org
Sun Jul 29 16:31:57 CEST 2018


commit 005ab58cf2fd0c738a6fa2b39210b14597f2de2a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Jul 29 16:34:00 2018 +0200

    - added stddef-max_align_t patch (C++ 11 max_align_t support); release 10

 crossmingw64-headers-stddef-max_align_t.patch | 23 +++++++++++++++++++++++
 crossmingw64-headers.spec                     |  4 +++-
 2 files changed, 26 insertions(+), 1 deletion(-)
---
diff --git a/crossmingw64-headers.spec b/crossmingw64-headers.spec
index 8bcadb5..9d72444 100644
--- a/crossmingw64-headers.spec
+++ b/crossmingw64-headers.spec
@@ -2,13 +2,14 @@ Summary:	Cross MinGW-W64 GNU development utilities - headers
 Summary(pl.UTF-8):	Skrośne narzędzia programistyczne GNU dla MinGW-W64 - pliki nagłówkowe
 Name:		crossmingw64-headers
 Version:	2.0
-Release:	9
+Release:	10
 License:	ZPL v2.1 with parts on Public Domain, BSD and LGPL.
 Group:		Development/Tools
 # svn co https://mingw-w64.svn.sourceforge.net/svnroot/mingw-w64/stable/v2.x/mingw-w64-headers mingw64-headers
 %define		_rev	5515
 Source0:	mingw64-headers.tar.xz
 # Source0-md5:	1268ff4bed4aab11c5604281f7741987
+Patch0:		%{name}-stddef-max_align_t.patch
 URL:		http://mingw-w64.sourceforge.net/
 BuildRequires:	automake
 BuildRequires:	subversion
@@ -45,6 +46,7 @@ svn upgrade
 if [ "`svnversion -n`" != "%{_rev}" ]; then
 	exit 1
 fi
+%patch0 -p1
 cp -p include/ChangeLog ChangeLog.headers
 cp -p direct-x/ChangeLog ChangeLog.direct-x-headers
 
diff --git a/crossmingw64-headers-stddef-max_align_t.patch b/crossmingw64-headers-stddef-max_align_t.patch
new file mode 100644
index 0000000..d3f3daf
--- /dev/null
+++ b/crossmingw64-headers-stddef-max_align_t.patch
@@ -0,0 +1,23 @@
+--- mingw64-headers/crt/stddef.h.orig	2012-08-31 19:47:34.000000000 +0200
++++ mingw64-headers/crt/stddef.h	2016-12-25 09:11:01.224725279 +0100
+@@ -413,6 +413,20 @@
+ /* Offset of member MEMBER in a struct of type TYPE. */
+ #define offsetof(TYPE, MEMBER) __builtin_offsetof (TYPE, MEMBER)
+ 
++#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) \
++  || (defined(__cplusplus) && __cplusplus >= 201103L)
++#ifndef _GCC_MAX_ALIGN_T
++#define _GCC_MAX_ALIGN_T
++/* Type whose alignment is supported in every context and is at least
++   as great as that of any standard type not using alignment
++   specifiers.  */
++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
++#endif /* C11 or C++11.  */
++
+ #endif /* _STDDEF_H was defined this time.  */
+ 
+ #endif /* !_STDDEF_H && !_STDDEF_H_ && !_ANSI_STDDEF_H && !__STDDEF_H__
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/crossmingw64-headers.git/commitdiff/005ab58cf2fd0c738a6fa2b39210b14597f2de2a



More information about the pld-cvs-commit mailing list