--- /dev/null
+--- 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__
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
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