Module Name:    src
Committed By:   mrg
Date:           Thu Mar 17 00:03:38 UTC 2016

Modified Files:
        src/include: stddef.h

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/include/stddef.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/include/stddef.h
diff -u src/include/stddef.h:1.17 src/include/stddef.h:1.18
--- src/include/stddef.h:1.17	Thu Dec 12 17:53:03 2013
+++ src/include/stddef.h	Thu Mar 17 00:03:38 2016
@@ -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 @@ typedef	_BSD_WCHAR_T_	wchar_t;
 #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_ */

Reply via email to