Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/include add max_align_t. C11 defines this and GCC 5.3 reall...
details: https://anonhg.NetBSD.org/src/rev/98c947d7c3f1
branches: trunk
changeset: 344211:98c947d7c3f1
user: mrg <mrg%NetBSD.org@localhost>
date: Thu Mar 17 00:03:38 2016 +0000
description:
add max_align_t. C11 defines this and GCC 5.3 really wants it.
XXX: language laywers, please feel free to fix this as necessary.
diffstat:
include/stddef.h | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 638269827054 -r 98c947d7c3f1 include/stddef.h
--- a/include/stddef.h Thu Mar 17 00:00:44 2016 +0000
+++ b/include/stddef.h Thu Mar 17 00:03:38 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: stddef.h,v 1.17 2013/12/12 17:53:03 matt Exp $ */
+/* $NetBSD: stddef.h,v 1.18 2016/03/17 00:03:38 mrg Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -66,5 +66,11 @@
#define offsetof(type, member) __offsetof__((reinterpret_cast<size_t> \
(&reinterpret_cast<const volatile char &>(static_cast<type *>(0)->member))))
#endif
+
+typedef union {
+ char *_c;
+ long double _ld;
+ long long int _ll;
+} max_align_t;
#endif /* _STDDEF_H_ */
Home |
Main Index |
Thread Index |
Old Index