]> git.pld-linux.org Git - packages/crossmingw64-headers.git/commitdiff
- added stddef-max_align_t patch (C++ 11 max_align_t support); release 10
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 29 Jul 2018 14:34:00 +0000 (16:34 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 29 Jul 2018 14:34:00 +0000 (16:34 +0200)
crossmingw64-headers-stddef-max_align_t.patch [new file with mode: 0644]
crossmingw64-headers.spec

diff --git a/crossmingw64-headers-stddef-max_align_t.patch b/crossmingw64-headers-stddef-max_align_t.patch
new file mode 100644 (file)
index 0000000..d3f3daf
--- /dev/null
@@ -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__
index 8bcadb51dec59a280b1db4548baec63c8957a7dc..9d72444f0ebf13e9246c2d29e326df16494345fb 100644 (file)
@@ -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
 
This page took 0.082232 seconds and 4 git commands to generate.