8559 Add EFI utility functions to libefi
[unleashed.git] / include / iso / stddef_iso.h
blob32b34c7be3c610dba01f7d4adbe80f0d915a7d15
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
20 * CDDL HEADER END
22 /* Copyright (c) 1988 AT&T */
23 /* All Rights Reserved */
27 * Copyright 1999-2003 Sun Microsystems, Inc. All rights reserved.
28 * Use is subject to license terms.
32 * Copyright 2014 PALO, Richard.
33 * Copyright 2016 Joyent, Inc.
37 * An application should not include this header directly. Instead it
38 * should be included only through the inclusion of other Sun headers.
40 * The contents of this header is limited to identifiers specified in the
41 * C Standard. Any new identifiers specified in future amendments to the
42 * C Standard must be placed in this header. If these new identifiers
43 * are required to also be in the C++ Standard "std" namespace, then for
44 * anything other than macro definitions, corresponding "using" directives
45 * must also be added to <stddef.h.h>.
48 #ifndef _ISO_STDDEF_ISO_H
49 #define _ISO_STDDEF_ISO_H
51 #include <sys/isa_defs.h>
52 #include <sys/feature_tests.h>
53 #include <sys/null.h>
55 #ifdef __cplusplus
56 extern "C" {
57 #endif
59 #if __cplusplus >= 199711L
60 namespace std {
61 #endif
63 #if !defined(_PTRDIFF_T) || __cplusplus >= 199711L
64 #define _PTRDIFF_T
65 #if defined(_LP64) || defined(_I32LPx)
66 typedef long ptrdiff_t; /* pointer difference */
67 #else
68 typedef int ptrdiff_t; /* (historical version) */
69 #endif
70 #endif /* !_PTRDIFF_T */
72 #if !defined(_SIZE_T) || __cplusplus >= 199711L
73 #define _SIZE_T
74 #if defined(_LP64) || defined(_I32LPx)
75 typedef unsigned long size_t; /* size of something in bytes */
76 #else
77 typedef unsigned int size_t; /* (historical version) */
78 #endif
79 #endif /* !_SIZE_T */
81 #if __cplusplus >= 199711L
83 #endif /* end of namespace std */
85 #if !defined(_MAX_ALIGN_T)
86 #if !defined(_STRICT_SYMBOLS) || defined(_STDC_C11)
87 #define _MAX_ALIGN_T
88 typedef _MAX_ALIGNMENT_TYPE max_align_t;
89 #endif /* !_STRICT_SYMBOLS || _STDC_C11 */
90 #endif /* _MAX_ALIGN_T */
92 #ifdef __cplusplus
94 #endif
96 #endif /* _ISO_STDDEF_ISO_H */