ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/trunk/include/stddef.h
(Generate patch)

Comparing trunk/include/stddef.h (file contents):
Revision 12009 by laffer1, Sat Jun 9 19:53:26 2018 UTC vs.
Revision 12010 by laffer1, Sun Sep 2 19:24:56 2018 UTC

# Line 1 | Line 1
1   /* $MidnightBSD$ */
2   /*-
3 + * SPDX-License-Identifier: BSD-3-Clause
4 + *
5   * Copyright (c) 1990, 1993
6   *      The Regents of the University of California.  All rights reserved.
7   *
# Line 39 | Line 41
41   #include <sys/_null.h>
42   #include <sys/_types.h>
43  
44 + #ifndef _PTRDIFF_T_DECLARED
45   typedef __ptrdiff_t     ptrdiff_t;
46 + #define _PTRDIFF_T_DECLARED
47 + #endif
48  
49   #if __BSD_VISIBLE
50   #ifndef _RUNE_T_DECLARED
# Line 60 | Line 65 | typedef        ___wchar_t      wchar_t;
65   #endif
66   #endif
67  
68 < #if __STDC_VERSION__ >= 201112L || __cplusplus >= 201103L
68 > #if __ISO_C_VISIBLE >= 2011 || __cplusplus >= 201103L
69   #ifndef __CLANG_MAX_ALIGN_T_DEFINED
70   typedef __max_align_t   max_align_t;
71   #define __CLANG_MAX_ALIGN_T_DEFINED
# Line 69 | Line 74 | typedef        __max_align_t   max_align_t;
74   #endif
75  
76   #define offsetof(type, field)   __offsetof(type, field)
77 +
78 + #if __EXT1_VISIBLE
79 + /* ISO/IEC 9899:2011 K.3.3.2 */
80 + #ifndef _RSIZE_T_DEFINED
81 + #define _RSIZE_T_DEFINED
82 + typedef size_t rsize_t;
83 + #endif
84 + #endif /* __EXT1_VISIBLE */
85  
86   #endif /* _STDDEF_H_ */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines