diff options
Diffstat (limited to 'include/stddef.h')
-rw-r--r-- | include/stddef.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/stddef.h b/include/stddef.h index 7898da2..7f2d2f0 100644 --- a/include/stddef.h +++ b/include/stddef.h @@ -62,6 +62,14 @@ typedef ___wchar_t wchar_t; #endif #endif +#if __STDC_VERSION__ >= 201112L || __cplusplus >= 201103L +#ifndef __CLANG_MAX_ALIGN_T_DEFINED +typedef __max_align_t max_align_t; +#define __CLANG_MAX_ALIGN_T_DEFINED +#define __GCC_MAX_ALIGN_T +#endif +#endif + #define offsetof(type, member) __offsetof(type, member) #endif /* _STDDEF_H_ */ |