ntdll: Allow NtQueryVolumeInformationFile to make async volume information queries.
[wine.git] / include / msvcrt / inttypes.h
blobdd30bc97c853c3790c6280b7a73f8e4c8fd574fe
1 /**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6 /* 7.8 Format conversion of integer types <inttypes.h> */
8 #ifndef _INTTYPES_H_
9 #define _INTTYPES_H_
11 #include <corecrt.h>
12 #include <stdint.h>
13 #define __need_wchar_t
14 #include <stddef.h>
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
20 typedef struct {
21 intmax_t quot;
22 intmax_t rem;
23 } imaxdiv_t;
25 /* 7.8.1 Macros for format specifiers */
26 #define PRId64 "lld"
27 #define PRIi64 "lli"
28 #define PRIo64 "llo"
29 #define PRIu64 "llu"
30 #define PRIx64 "llx"
31 #define PRIX64 "llX"
33 /* fprintf macros for signed types */
34 #define PRId8 "d"
35 #define PRId16 "d"
36 #define PRId32 "d"
38 #define PRIdLEAST8 "d"
39 #define PRIdLEAST16 "d"
40 #define PRIdLEAST32 "d"
41 #define PRIdLEAST64 PRId64
43 #define PRIdFAST8 "d"
44 #define PRIdFAST16 "d"
45 #define PRIdFAST32 "d"
46 #define PRIdFAST64 PRId64
48 #define PRIdMAX PRId64
50 #define PRIi8 "i"
51 #define PRIi16 "i"
52 #define PRIi32 "i"
54 #define PRIiLEAST8 "i"
55 #define PRIiLEAST16 "i"
56 #define PRIiLEAST32 "i"
57 #define PRIiLEAST64 PRIi64
59 #define PRIiFAST8 "i"
60 #define PRIiFAST16 "i"
61 #define PRIiFAST32 "i"
62 #define PRIiFAST64 PRIi64
64 #define PRIiMAX PRIi64
66 #define PRIo8 "o"
67 #define PRIo16 "o"
68 #define PRIo32 "o"
70 #define PRIoLEAST8 "o"
71 #define PRIoLEAST16 "o"
72 #define PRIoLEAST32 "o"
73 #define PRIoLEAST64 PRIo64
75 #define PRIoFAST8 "o"
76 #define PRIoFAST16 "o"
77 #define PRIoFAST32 "o"
78 #define PRIoFAST64 PRIo64
80 #define PRIoMAX PRIo64
82 /* fprintf macros for unsigned types */
83 #define PRIu8 "u"
84 #define PRIu16 "u"
85 #define PRIu32 "u"
88 #define PRIuLEAST8 "u"
89 #define PRIuLEAST16 "u"
90 #define PRIuLEAST32 "u"
91 #define PRIuLEAST64 PRIu64
93 #define PRIuFAST8 "u"
94 #define PRIuFAST16 "u"
95 #define PRIuFAST32 "u"
96 #define PRIuFAST64 PRIu64
98 #define PRIuMAX PRIu64
100 #define PRIx8 "x"
101 #define PRIx16 "x"
102 #define PRIx32 "x"
104 #define PRIxLEAST8 "x"
105 #define PRIxLEAST16 "x"
106 #define PRIxLEAST32 "x"
107 #define PRIxLEAST64 PRIx64
109 #define PRIxFAST8 "x"
110 #define PRIxFAST16 "x"
111 #define PRIxFAST32 "x"
112 #define PRIxFAST64 PRIx64
114 #define PRIxMAX PRIx64
116 #define PRIX8 "X"
117 #define PRIX16 "X"
118 #define PRIX32 "X"
120 #define PRIXLEAST8 "X"
121 #define PRIXLEAST16 "X"
122 #define PRIXLEAST32 "X"
123 #define PRIXLEAST64 PRIX64
125 #define PRIXFAST8 "X"
126 #define PRIXFAST16 "X"
127 #define PRIXFAST32 "X"
128 #define PRIXFAST64 PRIX64
130 #define PRIXMAX PRIX64
133 * fscanf macros for signed int types
134 * NOTE: if 32-bit int is used for int_fast8_t and int_fast16_t
135 * (see stdint.h, 7.18.1.3), FAST8 and FAST16 should have
136 * no length identifiers
139 #define SCNd16 "hd"
140 #define SCNd32 "d"
141 #define SCNd64 PRId64
143 #define SCNdLEAST16 "hd"
144 #define SCNdLEAST32 "d"
145 #define SCNdLEAST64 PRId64
147 #define SCNdFAST16 "hd"
148 #define SCNdFAST32 "d"
149 #define SCNdFAST64 PRId64
151 #define SCNdMAX PRId64
153 #define SCNi16 "hi"
154 #define SCNi32 "i"
155 #define SCNi64 PRIi64
157 #define SCNiLEAST16 "hi"
158 #define SCNiLEAST32 "i"
159 #define SCNiLEAST64 PRIi64
161 #define SCNiFAST16 "hi"
162 #define SCNiFAST32 "i"
163 #define SCNiFAST64 PRIi64
165 #define SCNiMAX PRIi64
167 #define SCNo16 "ho"
168 #define SCNo32 "o"
169 #define SCNo64 PRIo64
171 #define SCNoLEAST16 "ho"
172 #define SCNoLEAST32 "o"
173 #define SCNoLEAST64 PRIo64
175 #define SCNoFAST16 "ho"
176 #define SCNoFAST32 "o"
177 #define SCNoFAST64 PRIo64
179 #define SCNoMAX PRIo64
181 #define SCNx16 "hx"
182 #define SCNx32 "x"
183 #define SCNx64 PRIx64
185 #define SCNxLEAST16 "hx"
186 #define SCNxLEAST32 "x"
187 #define SCNxLEAST64 PRIx64
189 #define SCNxFAST16 "hx"
190 #define SCNxFAST32 "x"
191 #define SCNxFAST64 PRIx64
193 #define SCNxMAX PRIx64
195 /* fscanf macros for unsigned int types */
197 #define SCNu16 "hu"
198 #define SCNu32 "u"
199 #define SCNu64 PRIu64
201 #define SCNuLEAST16 "hu"
202 #define SCNuLEAST32 "u"
203 #define SCNuLEAST64 PRIu64
205 #define SCNuFAST16 "hu"
206 #define SCNuFAST32 "u"
207 #define SCNuFAST64 PRIu64
209 #define SCNuMAX PRIu64
211 #ifdef _WIN64
212 #define PRIdPTR PRId64
213 #define PRIiPTR PRIi64
214 #define PRIoPTR PRIo64
215 #define PRIuPTR PRIu64
216 #define PRIxPTR PRIx64
217 #define PRIXPTR PRIX64
218 #define SCNdPTR PRId64
219 #define SCNiPTR PRIi64
220 #define SCNoPTR PRIo64
221 #define SCNxPTR PRIx64
222 #define SCNuPTR PRIu64
223 #else
224 #define PRIdPTR "d"
225 #define PRIiPTR "i"
226 #define PRIoPTR "o"
227 #define PRIuPTR "u"
228 #define PRIxPTR "x"
229 #define PRIXPTR "X"
230 #define SCNdPTR "d"
231 #define SCNiPTR "i"
232 #define SCNoPTR "o"
233 #define SCNxPTR "x"
234 #define SCNuPTR "u"
235 #endif
237 #ifdef __cplusplus
239 #endif
241 #endif /* ndef _INTTYPES_H */