]> git.cworth.org Git - apitrace-tests/blob - apps/d3dcommon/compat.h
Allow to build d3d samples independently of apitrace source.
[apitrace-tests] / apps / d3dcommon / compat.h
1 /**************************************************************************
2  *
3  * Copyright 2008-2009 VMware, Inc.
4  * All Rights Reserved.
5  *
6  * Permission is hereby granted, free of charge, to any person obtaining a copy
7  * of this software and associated documentation files (the "Software"), to deal
8  * in the Software without restriction, including without limitation the rights
9  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10  * copies of the Software, and to permit persons to whom the Software is
11  * furnished to do so, subject to the following conditions:
12  *
13  * The above copyright notice and this permission notice shall be included in
14  * all copies or substantial portions of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22  * THE SOFTWARE.
23  *
24  **************************************************************************/
25
26 /*
27  * MinGW compatability macros to allow using recent's DXSDK headers.
28  */
29
30 #ifdef __MINGW32__
31
32
33 /*
34  * Dummy definitions Standard Annotation Language (SAL) definitions
35  *
36  * These are typically defined in sal.h.
37  *
38  * http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/sal.h?view=markup
39  */
40
41 #define _Always_(annos)
42 #define _Analysis_noreturn_
43 #define _At_(target, annos)
44 #define _At_buffer_(target, iter, bound, annos)
45 #define _COM_Outptr_
46 #define _COM_Outptr_opt_
47 #define _COM_Outptr_opt_result_maybenull_
48 #define _COM_Outptr_result_maybenull_
49 #define _Check_return_
50 #define _Const_
51 #define _Deref2_pre_readonly_
52 #define _Deref_in_bound_
53 #define _Deref_in_range_(lb,ub)
54 #define _Deref_inout_bound_
55 #define _Deref_inout_z_
56 #define _Deref_inout_z_bytecap_c_(size)
57 #define _Deref_inout_z_cap_c_(size)
58 #define _Deref_opt_out_
59 #define _Deref_opt_out_opt_
60 #define _Deref_opt_out_opt_z_
61 #define _Deref_opt_out_z_
62 #define _Deref_out_
63 #define _Deref_out_bound_
64 #define _Deref_out_opt_
65 #define _Deref_out_opt_z_
66 #define _Deref_out_range_(lb,ub)
67 #define _Deref_out_z_
68 #define _Deref_out_z_bytecap_c_(size)
69 #define _Deref_out_z_cap_c_(size)
70 #define _Deref_post_bytecap_(size)
71 #define _Deref_post_bytecap_c_(size)
72 #define _Deref_post_bytecap_x_(size)
73 #define _Deref_post_bytecount_(size)
74 #define _Deref_post_bytecount_c_(size)
75 #define _Deref_post_bytecount_x_(size)
76 #define _Deref_post_cap_(size)
77 #define _Deref_post_cap_c_(size)
78 #define _Deref_post_cap_x_(size)
79 #define _Deref_post_count_(size)
80 #define _Deref_post_count_c_(size)
81 #define _Deref_post_count_x_(size)
82 #define _Deref_post_maybenull_
83 #define _Deref_post_notnull_
84 #define _Deref_post_null_
85 #define _Deref_post_opt_bytecap_(size)
86 #define _Deref_post_opt_bytecap_c_(size)
87 #define _Deref_post_opt_bytecap_x_(size)
88 #define _Deref_post_opt_bytecount_(size)
89 #define _Deref_post_opt_bytecount_c_(size)
90 #define _Deref_post_opt_bytecount_x_(size)
91 #define _Deref_post_opt_cap_(size)
92 #define _Deref_post_opt_cap_c_(size)
93 #define _Deref_post_opt_cap_x_(size)
94 #define _Deref_post_opt_count_(size)
95 #define _Deref_post_opt_count_c_(size)
96 #define _Deref_post_opt_count_x_(size)
97 #define _Deref_post_opt_valid_
98 #define _Deref_post_opt_valid_bytecap_(size)
99 #define _Deref_post_opt_valid_bytecap_c_(size)
100 #define _Deref_post_opt_valid_bytecap_x_(size)
101 #define _Deref_post_opt_valid_cap_(size)
102 #define _Deref_post_opt_valid_cap_c_(size)
103 #define _Deref_post_opt_valid_cap_x_(size)
104 #define _Deref_post_opt_z_
105 #define _Deref_post_opt_z_bytecap_(size)
106 #define _Deref_post_opt_z_bytecap_c_(size)
107 #define _Deref_post_opt_z_bytecap_x_(size)
108 #define _Deref_post_opt_z_cap_(size)
109 #define _Deref_post_opt_z_cap_c_(size)
110 #define _Deref_post_opt_z_cap_x_(size)
111 #define _Deref_post_valid_
112 #define _Deref_post_valid_bytecap_(size)
113 #define _Deref_post_valid_bytecap_c_(size)
114 #define _Deref_post_valid_bytecap_x_(size)
115 #define _Deref_post_valid_cap_(size)
116 #define _Deref_post_valid_cap_c_(size)
117 #define _Deref_post_valid_cap_x_(size)
118 #define _Deref_post_z_
119 #define _Deref_post_z_bytecap_(size)
120 #define _Deref_post_z_bytecap_c_(size)
121 #define _Deref_post_z_bytecap_x_(size)
122 #define _Deref_post_z_cap_(size)
123 #define _Deref_post_z_cap_c_(size)
124 #define _Deref_post_z_cap_x_(size)
125 #define _Deref_pre_bytecap_(size)
126 #define _Deref_pre_bytecap_c_(size)
127 #define _Deref_pre_bytecap_x_(size)
128 #define _Deref_pre_bytecount_(size)
129 #define _Deref_pre_bytecount_c_(size)
130 #define _Deref_pre_bytecount_x_(size)
131 #define _Deref_pre_cap_(size)
132 #define _Deref_pre_cap_c_(size)
133 #define _Deref_pre_cap_x_(size)
134 #define _Deref_pre_count_(size)
135 #define _Deref_pre_count_c_(size)
136 #define _Deref_pre_count_x_(size)
137 #define _Deref_pre_invalid_
138 #define _Deref_pre_maybenull_
139 #define _Deref_pre_notnull_
140 #define _Deref_pre_null_
141 #define _Deref_pre_opt_bytecap_(size)
142 #define _Deref_pre_opt_bytecap_c_(size)
143 #define _Deref_pre_opt_bytecap_x_(size)
144 #define _Deref_pre_opt_bytecount_(size)
145 #define _Deref_pre_opt_bytecount_c_(size)
146 #define _Deref_pre_opt_bytecount_x_(size)
147 #define _Deref_pre_opt_cap_(size)
148 #define _Deref_pre_opt_cap_c_(size)
149 #define _Deref_pre_opt_cap_x_(size)
150 #define _Deref_pre_opt_count_(size)
151 #define _Deref_pre_opt_count_c_(size)
152 #define _Deref_pre_opt_count_x_(size)
153 #define _Deref_pre_opt_valid_
154 #define _Deref_pre_opt_valid_bytecap_(size)
155 #define _Deref_pre_opt_valid_bytecap_c_(size)
156 #define _Deref_pre_opt_valid_bytecap_x_(size)
157 #define _Deref_pre_opt_valid_cap_(size)
158 #define _Deref_pre_opt_valid_cap_c_(size)
159 #define _Deref_pre_opt_valid_cap_x_(size)
160 #define _Deref_pre_opt_z_
161 #define _Deref_pre_opt_z_bytecap_(size)
162 #define _Deref_pre_opt_z_bytecap_c_(size)
163 #define _Deref_pre_opt_z_bytecap_x_(size)
164 #define _Deref_pre_opt_z_cap_(size)
165 #define _Deref_pre_opt_z_cap_c_(size)
166 #define _Deref_pre_opt_z_cap_x_(size)
167 #define _Deref_pre_readonly_
168 #define _Deref_pre_valid_
169 #define _Deref_pre_valid_bytecap_(size)
170 #define _Deref_pre_valid_bytecap_c_(size)
171 #define _Deref_pre_valid_bytecap_x_(size)
172 #define _Deref_pre_valid_cap_(size)
173 #define _Deref_pre_valid_cap_c_(size)
174 #define _Deref_pre_valid_cap_x_(size)
175 #define _Deref_pre_writeonly_
176 #define _Deref_pre_z_
177 #define _Deref_pre_z_bytecap_(size)
178 #define _Deref_pre_z_bytecap_c_(size)
179 #define _Deref_pre_z_bytecap_x_(size)
180 #define _Deref_pre_z_cap_(size)
181 #define _Deref_pre_z_cap_c_(size)
182 #define _Deref_pre_z_cap_x_(size)
183 #define _Deref_prepost_bytecap_(size)
184 #define _Deref_prepost_bytecap_x_(size)
185 #define _Deref_prepost_bytecount_(size)
186 #define _Deref_prepost_bytecount_x_(size)
187 #define _Deref_prepost_cap_(size)
188 #define _Deref_prepost_cap_x_(size)
189 #define _Deref_prepost_count_(size)
190 #define _Deref_prepost_count_x_(size)
191 #define _Deref_prepost_opt_bytecap_(size)
192 #define _Deref_prepost_opt_bytecap_x_(size)
193 #define _Deref_prepost_opt_bytecount_(size)
194 #define _Deref_prepost_opt_bytecount_x_(size)
195 #define _Deref_prepost_opt_cap_(size)
196 #define _Deref_prepost_opt_cap_x_(size)
197 #define _Deref_prepost_opt_count_(size)
198 #define _Deref_prepost_opt_count_x_(size)
199 #define _Deref_prepost_opt_valid_
200 #define _Deref_prepost_opt_valid_bytecap_(size)
201 #define _Deref_prepost_opt_valid_bytecap_x_(size)
202 #define _Deref_prepost_opt_valid_cap_(size)
203 #define _Deref_prepost_opt_valid_cap_x_(size)
204 #define _Deref_prepost_opt_z_
205 #define _Deref_prepost_opt_z_bytecap_(size)
206 #define _Deref_prepost_opt_z_cap_(size)
207 #define _Deref_prepost_valid_
208 #define _Deref_prepost_valid_bytecap_(size)
209 #define _Deref_prepost_valid_bytecap_x_(size)
210 #define _Deref_prepost_valid_cap_(size)
211 #define _Deref_prepost_valid_cap_x_(size)
212 #define _Deref_prepost_z_
213 #define _Deref_prepost_z_bytecap_(size)
214 #define _Deref_prepost_z_cap_(size)
215 #define _Deref_ret_bound_
216 #define _Deref_ret_opt_z_
217 #define _Deref_ret_range_(lb,ub)
218 #define _Deref_ret_z_
219 #define _Field_range_(min,max)
220 #define _Field_size_(size)
221 #define _Field_size_bytes_(size)
222 #define _Field_size_bytes_full_(size)
223 #define _Field_size_bytes_full_opt_(size)
224 #define _Field_size_bytes_opt_(size)
225 #define _Field_size_bytes_part_(size, count)
226 #define _Field_size_bytes_part_opt_(size, count)
227 #define _Field_size_full_(size)
228 #define _Field_size_full_opt_(size)
229 #define _Field_size_opt_(size)
230 #define _Field_size_part_(size, count)
231 #define _Field_size_part_opt_(size, count)
232 #define _Field_z_
233 #define _Function_class_(x)
234 #define _Group_(annos)
235 #define _In_
236 #define _In_bound_
237 #define _In_bytecount_(size)
238 #define _In_bytecount_c_(size)
239 #define _In_bytecount_x_(size)
240 #define _In_count_(size)
241 #define _In_count_c_(size)
242 #define _In_count_x_(size)
243 #define _In_defensive_(annotes)
244 #define _In_opt_
245 #define _In_opt_bytecount_(size)
246 #define _In_opt_bytecount_c_(size)
247 #define _In_opt_bytecount_x_(size)
248 #define _In_opt_count_(size)
249 #define _In_opt_count_c_(size)
250 #define _In_opt_count_x_(size)
251 #define _In_opt_ptrdiff_count_(size)
252 #define _In_opt_z_
253 #define _In_opt_z_bytecount_(size)
254 #define _In_opt_z_bytecount_c_(size)
255 #define _In_opt_z_count_(size)
256 #define _In_opt_z_count_c_(size)
257 #define _In_ptrdiff_count_(size)
258 #define _In_range_(lb,ub)
259 #define _In_reads_(size)
260 #define _In_reads_bytes_(size)
261 #define _In_reads_bytes_opt_(size)
262 #define _In_reads_opt_(size)
263 #define _In_reads_opt_z_(size)
264 #define _In_reads_or_z_(size)
265 #define _In_reads_to_ptr_(ptr)
266 #define _In_reads_to_ptr_opt_(ptr)
267 #define _In_reads_to_ptr_opt_z_(ptr)
268 #define _In_reads_to_ptr_z_(ptr)
269 #define _In_reads_z_(size)
270 #define _In_z_
271 #define _In_z_bytecount_(size)
272 #define _In_z_bytecount_c_(size)
273 #define _In_z_count_(size)
274 #define _In_z_count_c_(size)
275 #define _Inout_
276 #define _Inout_bytecap_(size)
277 #define _Inout_bytecap_c_(size)
278 #define _Inout_bytecap_x_(size)
279 #define _Inout_bytecount_(size)
280 #define _Inout_bytecount_c_(size)
281 #define _Inout_bytecount_x_(size)
282 #define _Inout_cap_(size)
283 #define _Inout_cap_c_(size)
284 #define _Inout_cap_x_(size)
285 #define _Inout_count_(size)
286 #define _Inout_count_c_(size)
287 #define _Inout_count_x_(size)
288 #define _Inout_defensive_(annotes)
289 #define _Inout_opt_
290 #define _Inout_opt_bytecap_(size)
291 #define _Inout_opt_bytecap_c_(size)
292 #define _Inout_opt_bytecap_x_(size)
293 #define _Inout_opt_bytecount_(size)
294 #define _Inout_opt_bytecount_c_(size)
295 #define _Inout_opt_bytecount_x_(size)
296 #define _Inout_opt_cap_(size)
297 #define _Inout_opt_cap_c_(size)
298 #define _Inout_opt_cap_x_(size)
299 #define _Inout_opt_count_(size)
300 #define _Inout_opt_count_c_(size)
301 #define _Inout_opt_count_x_(size)
302 #define _Inout_opt_ptrdiff_count_(size)
303 #define _Inout_opt_z_
304 #define _Inout_opt_z_bytecap_(size)
305 #define _Inout_opt_z_bytecap_c_(size)
306 #define _Inout_opt_z_bytecap_x_(size)
307 #define _Inout_opt_z_bytecount_(size)
308 #define _Inout_opt_z_bytecount_c_(size)
309 #define _Inout_opt_z_cap_(size)
310 #define _Inout_opt_z_cap_c_(size)
311 #define _Inout_opt_z_cap_x_(size)
312 #define _Inout_opt_z_count_(size)
313 #define _Inout_opt_z_count_c_(size)
314 #define _Inout_ptrdiff_count_(size)
315 #define _Inout_updates_(size)
316 #define _Inout_updates_all_(size)
317 #define _Inout_updates_all_opt_(size)
318 #define _Inout_updates_bytes_(size)
319 #define _Inout_updates_bytes_all_(size)
320 #define _Inout_updates_bytes_all_opt_(size)
321 #define _Inout_updates_bytes_opt_(size)
322 #define _Inout_updates_bytes_to_(size,count)
323 #define _Inout_updates_bytes_to_opt_(size,count)
324 #define _Inout_updates_opt_(size)
325 #define _Inout_updates_opt_z_(size)
326 #define _Inout_updates_to_(size,count)
327 #define _Inout_updates_to_opt_(size,count)
328 #define _Inout_updates_z_(size)
329 #define _Inout_z_
330 #define _Inout_z_bytecap_(size)
331 #define _Inout_z_bytecap_c_(size)
332 #define _Inout_z_bytecap_x_(size)
333 #define _Inout_z_bytecount_(size)
334 #define _Inout_z_bytecount_c_(size)
335 #define _Inout_z_cap_(size)
336 #define _Inout_z_cap_c_(size)
337 #define _Inout_z_cap_x_(size)
338 #define _Inout_z_count_(size)
339 #define _Inout_z_count_c_(size)
340 #define _Interlocked_operand_
341 #define _Literal_
342 #define _Maybe_raises_SEH_exception
343 #define _Maybe_raises_SEH_exception_
344 #define _Maybenull_
345 #define _Maybevalid_
346 #define _Must_inspect_result_
347 #define _Notliteral_
348 #define _Notnull_
349 #define _Notref_
350 #define _Notvalid_
351 #define _NullNull_terminated_
352 #define _Null_
353 #define _Null_terminated_
354 #define _On_failure_(annos)
355 #define _Out_
356 #define _Out_bound_
357 #define _Out_bytecap_(size)
358 #define _Out_bytecap_c_(size)
359 #define _Out_bytecap_post_bytecount_(cap,count)
360 #define _Out_bytecap_x_(size)
361 #define _Out_bytecapcount_(capcount)
362 #define _Out_bytecapcount_x_(capcount)
363 #define _Out_cap_(size)
364 #define _Out_cap_c_(size)
365 #define _Out_cap_m_(mult,size)
366 #define _Out_cap_post_count_(cap,count)
367 #define _Out_cap_x_(size)
368 #define _Out_capcount_(capcount)
369 #define _Out_capcount_x_(capcount)
370 #define _Out_defensive_(annotes)
371 #define _Out_opt_
372 #define _Out_opt_bytecap_(size)
373 #define _Out_opt_bytecap_c_(size)
374 #define _Out_opt_bytecap_post_bytecount_(cap,count)
375 #define _Out_opt_bytecap_x_(size)
376 #define _Out_opt_bytecapcount_(capcount)
377 #define _Out_opt_bytecapcount_x_(capcount)
378 #define _Out_opt_cap_(size)
379 #define _Out_opt_cap_c_(size)
380 #define _Out_opt_cap_m_(mult,size)
381 #define _Out_opt_cap_post_count_(cap,count)
382 #define _Out_opt_cap_x_(size)
383 #define _Out_opt_capcount_(capcount)
384 #define _Out_opt_capcount_x_(capcount)
385 #define _Out_opt_ptrdiff_cap_(size)
386 #define _Out_opt_z_bytecap_(size)
387 #define _Out_opt_z_bytecap_c_(size)
388 #define _Out_opt_z_bytecap_post_bytecount_(cap,count)
389 #define _Out_opt_z_bytecap_x_(size)
390 #define _Out_opt_z_bytecapcount_(capcount)
391 #define _Out_opt_z_cap_(size)
392 #define _Out_opt_z_cap_c_(size)
393 #define _Out_opt_z_cap_m_(mult,size)
394 #define _Out_opt_z_cap_post_count_(cap,count)
395 #define _Out_opt_z_cap_x_(size)
396 #define _Out_opt_z_capcount_(capcount)
397 #define _Out_ptrdiff_cap_(size)
398 #define _Out_range_(lb,ub)
399 #define _Out_writes_(size)
400 #define _Out_writes_all_(size)
401 #define _Out_writes_all_opt_(size)
402 #define _Out_writes_bytes_(size)
403 #define _Out_writes_bytes_all_(size)
404 #define _Out_writes_bytes_all_opt_(size)
405 #define _Out_writes_bytes_opt_(size)
406 #define _Out_writes_bytes_to_(size,count)
407 #define _Out_writes_bytes_to_opt_(size,count)
408 #define _Out_writes_opt_(size)
409 #define _Out_writes_opt_z_(size)
410 #define _Out_writes_to_(size,count)
411 #define _Out_writes_to_opt_(size,count)
412 #define _Out_writes_to_ptr_(ptr)
413 #define _Out_writes_to_ptr_opt_(ptr)
414 #define _Out_writes_to_ptr_opt_z_(ptr)
415 #define _Out_writes_to_ptr_z_(ptr)
416 #define _Out_writes_z_(size)
417 #define _Out_z_bytecap_(size)
418 #define _Out_z_bytecap_c_(size)
419 #define _Out_z_bytecap_post_bytecount_(cap,count)
420 #define _Out_z_bytecap_x_(size)
421 #define _Out_z_bytecapcount_(capcount)
422 #define _Out_z_cap_(size)
423 #define _Out_z_cap_c_(size)
424 #define _Out_z_cap_m_(mult,size)
425 #define _Out_z_cap_post_count_(cap,count)
426 #define _Out_z_cap_x_(size)
427 #define _Out_z_capcount_(capcount)
428 #define _Outptr_
429 #define _Outptr_opt_
430 #define _Outptr_opt_result_buffer_(size)
431 #define _Outptr_opt_result_buffer_all_(size)
432 #define _Outptr_opt_result_buffer_all_maybenull_(size)
433 #define _Outptr_opt_result_buffer_maybenull_(size)
434 #define _Outptr_opt_result_buffer_to_(size, count)
435 #define _Outptr_opt_result_buffer_to_maybenull_(size, count)
436 #define _Outptr_opt_result_bytebuffer_(size)
437 #define _Outptr_opt_result_bytebuffer_all_(size)
438 #define _Outptr_opt_result_bytebuffer_all_maybenull_(size)
439 #define _Outptr_opt_result_bytebuffer_maybenull_(size)
440 #define _Outptr_opt_result_bytebuffer_to_(size, count)
441 #define _Outptr_opt_result_bytebuffer_to_maybenull_(size, count)
442 #define _Outptr_opt_result_maybenull_
443 #define _Outptr_opt_result_maybenull_z_
444 #define _Outptr_opt_result_nullonfailure_
445 #define _Outptr_opt_result_z_
446 #define _Outptr_result_buffer_(size)
447 #define _Outptr_result_buffer_all_(size)
448 #define _Outptr_result_buffer_all_maybenull_(size)
449 #define _Outptr_result_buffer_maybenull_(size)
450 #define _Outptr_result_buffer_to_(size, count)
451 #define _Outptr_result_buffer_to_maybenull_(size, count)
452 #define _Outptr_result_bytebuffer_(size)
453 #define _Outptr_result_bytebuffer_all_(size)
454 #define _Outptr_result_bytebuffer_all_maybenull_(size)
455 #define _Outptr_result_bytebuffer_maybenull_(size)
456 #define _Outptr_result_bytebuffer_to_(size, count)
457 #define _Outptr_result_bytebuffer_to_maybenull_(size, count)
458 #define _Outptr_result_maybenull_
459 #define _Outptr_result_maybenull_z_
460 #define _Outptr_result_nullonfailure_
461 #define _Outptr_result_z_
462 #define _Outref_
463 #define _Outref_result_buffer_(size)
464 #define _Outref_result_buffer_all_(size)
465 #define _Outref_result_buffer_all_maybenull_(size)
466 #define _Outref_result_buffer_maybenull_(size)
467 #define _Outref_result_buffer_to_(size, count)
468 #define _Outref_result_buffer_to_maybenull_(size, count)
469 #define _Outref_result_bytebuffer_(size)
470 #define _Outref_result_bytebuffer_all_(size)
471 #define _Outref_result_bytebuffer_all_maybenull_(size)
472 #define _Outref_result_bytebuffer_maybenull_(size)
473 #define _Outref_result_bytebuffer_to_(size, count)
474 #define _Outref_result_bytebuffer_to_maybenull_(size, count)
475 #define _Outref_result_maybenull_
476 #define _Outref_result_nullonfailure_
477 #define _Points_to_data_
478 #define _Post_
479 #define _Post_bytecap_(size)
480 #define _Post_bytecount_(size)
481 #define _Post_bytecount_c_(size)
482 #define _Post_bytecount_x_(size)
483 #define _Post_cap_(size)
484 #define _Post_count_(size)
485 #define _Post_count_c_(size)
486 #define _Post_count_x_(size)
487 #define _Post_defensive_
488 #define _Post_equal_to_(expr)
489 #define _Post_invalid_
490 #define _Post_maybenull_
491 #define _Post_maybez_
492 #define _Post_notnull_
493 #define _Post_null_
494 #define _Post_ptr_invalid_
495 #define _Post_readable_byte_size_(size)
496 #define _Post_readable_size_(size)
497 #define _Post_satisfies_(cond)
498 #define _Post_valid_
499 #define _Post_writable_byte_size_(size)
500 #define _Post_writable_size_(size)
501 #define _Post_z_
502 #define _Post_z_bytecount_(size)
503 #define _Post_z_bytecount_c_(size)
504 #define _Post_z_bytecount_x_(size)
505 #define _Post_z_count_(size)
506 #define _Post_z_count_c_(size)
507 #define _Post_z_count_x_(size)
508 #define _Pre_
509 #define _Pre_bytecap_(size)
510 #define _Pre_bytecap_c_(size)
511 #define _Pre_bytecap_x_(size)
512 #define _Pre_bytecount_(size)
513 #define _Pre_bytecount_c_(size)
514 #define _Pre_bytecount_x_(size)
515 #define _Pre_cap_(size)
516 #define _Pre_cap_c_(size)
517 #define _Pre_cap_c_one_
518 #define _Pre_cap_for_(param)
519 #define _Pre_cap_m_(mult,size)
520 #define _Pre_cap_x_(size)
521 #define _Pre_count_(size)
522 #define _Pre_count_c_(size)
523 #define _Pre_count_x_(size)
524 #define _Pre_defensive_
525 #define _Pre_equal_to_(expr)
526 #define _Pre_invalid_
527 #define _Pre_maybenull_
528 #define _Pre_notnull_
529 #define _Pre_null_
530 #define _Pre_opt_bytecap_(size)
531 #define _Pre_opt_bytecap_c_(size)
532 #define _Pre_opt_bytecap_x_(size)
533 #define _Pre_opt_bytecount_(size)
534 #define _Pre_opt_bytecount_c_(size)
535 #define _Pre_opt_bytecount_x_(size)
536 #define _Pre_opt_cap_(size)
537 #define _Pre_opt_cap_c_(size)
538 #define _Pre_opt_cap_c_one_
539 #define _Pre_opt_cap_for_(param)
540 #define _Pre_opt_cap_m_(mult,size)
541 #define _Pre_opt_cap_x_(size)
542 #define _Pre_opt_count_(size)
543 #define _Pre_opt_count_c_(size)
544 #define _Pre_opt_count_x_(size)
545 #define _Pre_opt_ptrdiff_cap_(ptr)
546 #define _Pre_opt_ptrdiff_count_(ptr)
547 #define _Pre_opt_valid_
548 #define _Pre_opt_valid_bytecap_(size)
549 #define _Pre_opt_valid_bytecap_c_(size)
550 #define _Pre_opt_valid_bytecap_x_(size)
551 #define _Pre_opt_valid_cap_(size)
552 #define _Pre_opt_valid_cap_c_(size)
553 #define _Pre_opt_valid_cap_x_(size)
554 #define _Pre_opt_z_
555 #define _Pre_opt_z_bytecap_(size)
556 #define _Pre_opt_z_bytecap_c_(size)
557 #define _Pre_opt_z_bytecap_x_(size)
558 #define _Pre_opt_z_cap_(size)
559 #define _Pre_opt_z_cap_c_(size)
560 #define _Pre_opt_z_cap_x_(size)
561 #define _Pre_ptrdiff_cap_(ptr)
562 #define _Pre_ptrdiff_count_(ptr)
563 #define _Pre_readable_byte_size_(size)
564 #define _Pre_readable_size_(size)
565 #define _Pre_readonly_
566 #define _Pre_satisfies_(cond)
567 #define _Pre_valid_
568 #define _Pre_valid_bytecap_(size)
569 #define _Pre_valid_bytecap_c_(size)
570 #define _Pre_valid_bytecap_x_(size)
571 #define _Pre_valid_cap_(size)
572 #define _Pre_valid_cap_c_(size)
573 #define _Pre_valid_cap_x_(size)
574 #define _Pre_writable_byte_size_(size)
575 #define _Pre_writable_size_(size)
576 #define _Pre_writeonly_
577 #define _Pre_z_
578 #define _Pre_z_bytecap_(size)
579 #define _Pre_z_bytecap_c_(size)
580 #define _Pre_z_bytecap_x_(size)
581 #define _Pre_z_cap_(size)
582 #define _Pre_z_cap_c_(size)
583 #define _Pre_z_cap_x_(size)
584 #define _Prepost_bytecount_(size)
585 #define _Prepost_bytecount_c_(size)
586 #define _Prepost_bytecount_x_(size)
587 #define _Prepost_count_(size)
588 #define _Prepost_count_c_(size)
589 #define _Prepost_count_x_(size)
590 #define _Prepost_opt_bytecount_(size)
591 #define _Prepost_opt_bytecount_c_(size)
592 #define _Prepost_opt_bytecount_x_(size)
593 #define _Prepost_opt_count_(size)
594 #define _Prepost_opt_count_c_(size)
595 #define _Prepost_opt_count_x_(size)
596 #define _Prepost_opt_valid_
597 #define _Prepost_opt_z_
598 #define _Prepost_valid_
599 #define _Prepost_z_
600 #define _Printf_format_string_
601 #define _Raises_SEH_exception_
602 #define _Readable_bytes_(size)
603 #define _Readable_elements_(size)
604 #define _Reserved_
605 #define _Result_nullonfailure_
606 #define _Result_zeroonfailure_
607 #define _Ret_
608 #define _Ret_bound_
609 #define _Ret_bytecap_(size)
610 #define _Ret_bytecap_c_(size)
611 #define _Ret_bytecap_x_(size)
612 #define _Ret_bytecount_(size)
613 #define _Ret_bytecount_c_(size)
614 #define _Ret_bytecount_x_(size)
615 #define _Ret_cap_(size)
616 #define _Ret_cap_c_(size)
617 #define _Ret_cap_x_(size)
618 #define _Ret_count_(size)
619 #define _Ret_count_c_(size)
620 #define _Ret_count_x_(size)
621 #define _Ret_maybenull_
622 #define _Ret_maybenull_z_
623 #define _Ret_notnull_
624 #define _Ret_null_
625 #define _Ret_opt_
626 #define _Ret_opt_bytecap_(size)
627 #define _Ret_opt_bytecap_c_(size)
628 #define _Ret_opt_bytecap_x_(size)
629 #define _Ret_opt_bytecount_(size)
630 #define _Ret_opt_bytecount_c_(size)
631 #define _Ret_opt_bytecount_x_(size)
632 #define _Ret_opt_cap_(size)
633 #define _Ret_opt_cap_c_(size)
634 #define _Ret_opt_cap_x_(size)
635 #define _Ret_opt_count_(size)
636 #define _Ret_opt_count_c_(size)
637 #define _Ret_opt_count_x_(size)
638 #define _Ret_opt_valid_
639 #define _Ret_opt_z_
640 #define _Ret_opt_z_bytecap_(size)
641 #define _Ret_opt_z_bytecount_(size)
642 #define _Ret_opt_z_cap_(size)
643 #define _Ret_opt_z_count_(size)
644 #define _Ret_range_(lb,ub)
645 #define _Ret_valid_
646 #define _Ret_writes_(size)
647 #define _Ret_writes_bytes_(size)
648 #define _Ret_writes_bytes_maybenull_(size)
649 #define _Ret_writes_bytes_to_(size,count)
650 #define _Ret_writes_bytes_to_maybenull_(size,count)
651 #define _Ret_writes_maybenull_(size)
652 #define _Ret_writes_maybenull_z_(size)
653 #define _Ret_writes_to_(size,count)
654 #define _Ret_writes_to_maybenull_(size,count)
655 #define _Ret_writes_z_(size)
656 #define _Ret_z_
657 #define _Ret_z_bytecap_(size)
658 #define _Ret_z_bytecount_(size)
659 #define _Ret_z_cap_(size)
660 #define _Ret_z_count_(size)
661 #define _Return_type_success_(expr)
662 #define _Scanf_format_string_
663 #define _Scanf_s_format_string_
664 #define _Struct_size_bytes_(size)
665 #define _Success_(expr)
666 #define _Unchanged_(e)
667 #define _Use_decl_annotations_
668 #define _Valid_
669 #define _When_(expr, annos)
670 #define _Writable_bytes_(size)
671 #define _Writable_elements_(size)
672 #define __inner_callback
673 #define __inner_exceptthat
674 #define __inner_typefix(ctype)
675
676
677 /*
678  * Dummy header annotations.
679  *
680  * These are typically defined in specstrings.h.
681  *
682  * Unfortunately these defines tend to clash with libstdc++ internal symbols.  A solution is to ensure
683  * that all needed libstdc++ headers are included before this one.
684  *
685  * See also:
686  * - http://msdn.microsoft.com/en-us/library/aa383701.aspx
687  * - http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/specstrings.h?view=markup
688  */
689
690 #define __deref_out
691 #define __deref_out_bcount(x)
692 #define __deref_out_opt
693 #define __ecount(x)
694 #define __field_bcount(x)
695 #define __field_ecount(x)
696 #define __field_ecount_full(x)
697 #define __field_ecount_opt(x)
698 #define __in
699 #define __in_bcount(x)
700 #define __in_bcount_opt(x)
701 #define __in_ecount(x)
702 #define __in_ecount_opt(x)
703 #define __in_opt
704 #define __in_range(x,y)
705 #define __in_z
706 #define __in_z_opt
707 #define __inout
708 #define __inout_opt
709 #define __maybenull
710 #define __notnull
711 #define __nullterminated
712 #define __out
713 #define __out_bcount(x)
714 #define __out_bcount_full_opt(x)
715 #define __out_bcount_opt(x)
716 #define __out_ecount(x)
717 #define __out_ecount_opt(x)
718 #define __out_ecount_part_opt(x,y)
719 #define __out_ecount_part_z_opt(x,y)
720 #define __out_ecount_z(x)
721 #define __out_opt
722 #define __out_z
723 #define __range(x,y)
724 #define __success(x)
725
726
727 #ifndef __inline
728 #define __inline static __inline__
729 #endif
730
731 #ifndef DECLSPEC_DEPRECATED
732 #define DECLSPEC_DEPRECATED
733 #endif
734
735 #ifndef DECLSPEC_NOVTABLE
736 #define DECLSPEC_NOVTABLE
737 #endif
738
739 #ifndef __MINGW64_VERSION_MAJOR
740 #define INT8 signed char
741 #define UINT8 unsigned char
742 #define INT16 signed short
743 #define UINT16 unsigned short
744 #endif
745
746
747 #endif /* __MINGW32__ */
748