aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2016-10-21 23:50:02 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2016-10-21 23:50:02 +0000
commit5dd723425ee0bbe05c08d2c2272be9fc34695886 (patch)
tree0d6714baa25d9660a3383f3c9610a8ff45e7254d /include
parent7627b33010f0907e2bfc9e6b826d102eb05f6b33 (diff)
Notes
Diffstat (limited to 'include')
-rw-r--r--include/stddef.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/stddef.h b/include/stddef.h
index 7898da251a6e..7f2d2f0cd4bd 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_ */