12 * and limitations under the License.
13 *
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]
19 *
20 * CDDL HEADER END
21 */
22 /* Copyright (c) 1988 AT&T */
23 /* All Rights Reserved */
24
25
26 /*
27 * Copyright 1999-2003 Sun Microsystems, Inc. All rights reserved.
28 * Use is subject to license terms.
29 */
30
31 /*
32 * An application should not include this header directly. Instead it
33 * should be included only through the inclusion of other Sun headers.
34 *
35 * The contents of this header is limited to identifiers specified in the
36 * C Standard. Any new identifiers specified in future amendments to the
37 * C Standard must be placed in this header. If these new identifiers
38 * are required to also be in the C++ Standard "std" namespace, then for
39 * anything other than macro definitions, corresponding "using" directives
40 * must also be added to <stddef.h.h>.
41 */
42
43 #ifndef _ISO_STDDEF_ISO_H
44 #define _ISO_STDDEF_ISO_H
45
46 #pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.5 */
47
48 #include <sys/isa_defs.h>
49
50 #ifdef __cplusplus
51 extern "C" {
52 #endif
53
54 #if __cplusplus >= 199711L
55 namespace std {
56 #endif
57
58 #ifndef NULL
59 #if defined(_LP64)
60 #define NULL 0L
61 #else
62 #define NULL 0
63 #endif
64 #endif
65
66 #if !defined(_PTRDIFF_T) || __cplusplus >= 199711L
67 #define _PTRDIFF_T
68 #if defined(_LP64) || defined(_I32LPx)
69 typedef long ptrdiff_t; /* pointer difference */
70 #else
71 typedef int ptrdiff_t; /* (historical version) */
72 #endif
73 #endif /* !_PTRDIFF_T */
74
75 #if !defined(_SIZE_T) || __cplusplus >= 199711L
76 #define _SIZE_T
77 #if defined(_LP64) || defined(_I32LPx)
78 typedef unsigned long size_t; /* size of something in bytes */
79 #else
80 typedef unsigned int size_t; /* (historical version) */
81 #endif
82 #endif /* !_SIZE_T */
83
84 #if __cplusplus >= 199711L
85 }
|
12 * and limitations under the License.
13 *
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]
19 *
20 * CDDL HEADER END
21 */
22 /* Copyright (c) 1988 AT&T */
23 /* All Rights Reserved */
24
25
26 /*
27 * Copyright 1999-2003 Sun Microsystems, Inc. All rights reserved.
28 * Use is subject to license terms.
29 */
30
31 /*
32 * Copyright 2014 PALO, Richard.
33 */
34
35 /*
36 * An application should not include this header directly. Instead it
37 * should be included only through the inclusion of other Sun headers.
38 *
39 * The contents of this header is limited to identifiers specified in the
40 * C Standard. Any new identifiers specified in future amendments to the
41 * C Standard must be placed in this header. If these new identifiers
42 * are required to also be in the C++ Standard "std" namespace, then for
43 * anything other than macro definitions, corresponding "using" directives
44 * must also be added to <stddef.h.h>.
45 */
46
47 #ifndef _ISO_STDDEF_ISO_H
48 #define _ISO_STDDEF_ISO_H
49
50 #include <sys/isa_defs.h>
51 #include <sys/null.h>
52
53 #ifdef __cplusplus
54 extern "C" {
55 #endif
56
57 #if __cplusplus >= 199711L
58 namespace std {
59 #endif
60
61 #if !defined(_PTRDIFF_T) || __cplusplus >= 199711L
62 #define _PTRDIFF_T
63 #if defined(_LP64) || defined(_I32LPx)
64 typedef long ptrdiff_t; /* pointer difference */
65 #else
66 typedef int ptrdiff_t; /* (historical version) */
67 #endif
68 #endif /* !_PTRDIFF_T */
69
70 #if !defined(_SIZE_T) || __cplusplus >= 199711L
71 #define _SIZE_T
72 #if defined(_LP64) || defined(_I32LPx)
73 typedef unsigned long size_t; /* size of something in bytes */
74 #else
75 typedef unsigned int size_t; /* (historical version) */
76 #endif
77 #endif /* !_SIZE_T */
78
79 #if __cplusplus >= 199711L
80 }
|