add psp gcc 11.2.0 patch
[rofl0r-mmix-cross.git] / patches / musl-1.1.12-alignas.diff
blobedad22acd8a1f06f8fbfe0a6d90771b3c8ff4e79
1 diff --git a/arch/i386/bits/alltypes.h.in b/arch/i386/bits/alltypes.h.in
2 index b8902db..4ac1b42 100644
3 --- a/arch/i386/bits/alltypes.h.in
4 +++ b/arch/i386/bits/alltypes.h.in
5 @@ -27,7 +27,11 @@ TYPEDEF long double double_t;
6 #endif
8 #ifdef __cplusplus
9 +#if defined(__GNUC__) && (__GNUC__*100+__GNUC_MINOR__*10) < 480
10 +TYPEDEF struct { __attribute__((aligned(8))) long long __ll; long double __ld; } max_align_t;
11 +#else
12 TYPEDEF struct { alignas(8) long long __ll; long double __ld; } max_align_t;
13 +#endif
14 #else
15 TYPEDEF struct { _Alignas(8) long long __ll; long double __ld; } max_align_t;
16 #endif