]> git.pld-linux.org Git - packages/crossmingw64-headers.git/blob - crossmingw64-headers-stddef-max_align_t.patch
- use arch*dir macros
[packages/crossmingw64-headers.git] / crossmingw64-headers-stddef-max_align_t.patch
1 --- mingw64-headers/crt/stddef.h.orig   2012-08-31 19:47:34.000000000 +0200
2 +++ mingw64-headers/crt/stddef.h        2016-12-25 09:11:01.224725279 +0100
3 @@ -413,6 +413,20 @@
4  /* Offset of member MEMBER in a struct of type TYPE. */
5  #define offsetof(TYPE, MEMBER) __builtin_offsetof (TYPE, MEMBER)
6  
7 +#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) \
8 +  || (defined(__cplusplus) && __cplusplus >= 201103L)
9 +#ifndef _GCC_MAX_ALIGN_T
10 +#define _GCC_MAX_ALIGN_T
11 +/* Type whose alignment is supported in every context and is at least
12 +   as great as that of any standard type not using alignment
13 +   specifiers.  */
14 +typedef struct {
15 +  long long __max_align_ll __attribute__((__aligned__(__alignof__(long long))));
16 +  long double __max_align_ld __attribute__((__aligned__(__alignof__(long double))));
17 +} max_align_t;
18 +#endif
19 +#endif /* C11 or C++11.  */
20 +
21  #endif /* _STDDEF_H was defined this time.  */
22  
23  #endif /* !_STDDEF_H && !_STDDEF_H_ && !_ANSI_STDDEF_H && !__STDDEF_H__
This page took 0.093252 seconds and 3 git commands to generate.