Module Name: src Committed By: christos Date: Sun Mar 20 14:11:50 UTC 2016
Modified Files: src/include: stddef.h Log Message: PR/50983: David Shao: Protect stddef; also make the pointer void *. To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 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.18 src/include/stddef.h:1.19 --- src/include/stddef.h:1.18 Wed Mar 16 20:03:38 2016 +++ src/include/stddef.h Sun Mar 20 10:11:49 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: stddef.h,v 1.18 2016/03/17 00:03:38 mrg Exp $ */ +/* $NetBSD: stddef.h,v 1.19 2016/03/20 14:11:49 christos Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -67,10 +67,13 @@ typedef _BSD_WCHAR_T_ wchar_t; (&reinterpret_cast<const volatile char &>(static_cast<type *>(0)->member)))) #endif +#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) \ + || (defined(__cplusplus) && __cplusplus >= 201103L) typedef union { - char *_c; + void *_v; long double _ld; long long int _ll; } max_align_t; +#endif #endif /* _STDDEF_H_ */