]>
Commit | Line | Data |
---|---|---|
1 | /* $NetBSD: stdint.h,v 1.5 2005/12/11 12:25:21 christos Exp $ */\r | |
2 | \r | |
3 | /*-\r | |
4 | * Copyright (c) 2001, 2004 The NetBSD Foundation, Inc.\r | |
5 | * All rights reserved.\r | |
6 | *\r | |
7 | * This code is derived from software contributed to The NetBSD Foundation\r | |
8 | * by Klaus Klein.\r | |
9 | *\r | |
10 | * Redistribution and use in source and binary forms, with or without\r | |
11 | * modification, are permitted provided that the following conditions\r | |
12 | * are met:\r | |
13 | * 1. Redistributions of source code must retain the above copyright\r | |
14 | * notice, this list of conditions and the following disclaimer.\r | |
15 | * 2. Redistributions in binary form must reproduce the above copyright\r | |
16 | * notice, this list of conditions and the following disclaimer in the\r | |
17 | * documentation and/or other materials provided with the distribution.\r | |
18 | * 3. All advertising materials mentioning features or use of this software\r | |
19 | * must display the following acknowledgement:\r | |
20 | * This product includes software developed by the NetBSD\r | |
21 | * Foundation, Inc. and its contributors.\r | |
22 | * 4. Neither the name of The NetBSD Foundation nor the names of its\r | |
23 | * contributors may be used to endorse or promote products derived\r | |
24 | * from this software without specific prior written permission.\r | |
25 | *\r | |
26 | * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\r | |
27 | * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\r | |
28 | * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r | |
29 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\r | |
30 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\r | |
31 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\r | |
32 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\r | |
33 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\r | |
34 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\r | |
35 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\r | |
36 | * POSSIBILITY OF SUCH DAMAGE.\r | |
37 | */\r | |
38 | \r | |
39 | #ifndef _SYS_STDINT_H_\r | |
40 | #define _SYS_STDINT_H_\r | |
41 | \r | |
42 | #include <sys/EfiCdefs.h>\r | |
43 | #include <machine/int_types.h>\r | |
44 | \r | |
45 | #ifndef int8_t\r | |
46 | typedef __int8_t int8_t;\r | |
47 | #define int8_t __int8_t\r | |
48 | #endif\r | |
49 | \r | |
50 | #ifndef uint8_t\r | |
51 | typedef __uint8_t uint8_t;\r | |
52 | #define uint8_t __uint8_t\r | |
53 | #endif\r | |
54 | \r | |
55 | #ifndef int16_t\r | |
56 | typedef __int16_t int16_t;\r | |
57 | #define int16_t __int16_t\r | |
58 | #endif\r | |
59 | \r | |
60 | #ifndef uint16_t\r | |
61 | typedef __uint16_t uint16_t;\r | |
62 | #define uint16_t __uint16_t\r | |
63 | #endif\r | |
64 | \r | |
65 | #ifndef int32_t\r | |
66 | typedef __int32_t int32_t;\r | |
67 | #define int32_t __int32_t\r | |
68 | #endif\r | |
69 | \r | |
70 | #ifndef uint32_t\r | |
71 | typedef __uint32_t uint32_t;\r | |
72 | #define uint32_t __uint32_t\r | |
73 | #endif\r | |
74 | \r | |
75 | #ifndef int64_t\r | |
76 | typedef __int64_t int64_t;\r | |
77 | #define int64_t __int64_t\r | |
78 | #endif\r | |
79 | \r | |
80 | #ifndef uint64_t\r | |
81 | typedef __uint64_t uint64_t;\r | |
82 | #define uint64_t __uint64_t\r | |
83 | #endif\r | |
84 | \r | |
85 | #ifndef intptr_t\r | |
86 | typedef __intptr_t intptr_t;\r | |
87 | #define intptr_t __intptr_t\r | |
88 | #endif\r | |
89 | \r | |
90 | #ifndef uintptr_t\r | |
91 | typedef __uintptr_t uintptr_t;\r | |
92 | #define uintptr_t __uintptr_t\r | |
93 | #endif\r | |
94 | \r | |
95 | #include <machine/int_mwgwtypes.h>\r | |
96 | \r | |
97 | #if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS)\r | |
98 | #include <machine/int_limits.h>\r | |
99 | #endif\r | |
100 | \r | |
101 | #if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS)\r | |
102 | #include <machine/int_const.h>\r | |
103 | #endif\r | |
104 | \r | |
105 | //#include <machine/wchar_limits.h>\r | |
106 | \r | |
107 | #endif /* !_SYS_STDINT_H_ */\r |