crashrpt
Prefastdef.h
Go to the documentation of this file.
1 /*************************************************************************************
2 This file is a part of CrashRpt library.
3 
4 Copyright (c) 2003, Michael Carruth
5 All rights reserved.
6 
7 Redistribution and use in source and binary forms, with or without modification,
8 are permitted provided that the following conditions are met:
9 
10 * Redistributions of source code must retain the above copyright notice, this
11 list of conditions and the following disclaimer.
12 
13 * Redistributions in binary form must reproduce the above copyright notice,
14 this list of conditions and the following disclaimer in the documentation
15 and/or other materials provided with the distribution.
16 
17 * Neither the name of the author nor the names of its contributors
18 may be used to endorse or promote products derived from this software without
19 specific prior written permission.
20 
21 
22 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
23 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
24 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
25 SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
26 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
27 TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
28 BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
29 STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
30 OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 ***************************************************************************************/
32 
39 #pragma once
40 
41 #include <windows.h>
42 
43 #if _MSC_VER<1400
44 #pragma warning(disable: 4616) //warning C4616: #pragma warning : warning number '6255' out of range, must be between '4001' and '4999'
45 #endif
46 
47 // Define SAL macros to be empty if some old Visual Studio used
48 #ifndef __reserved
49 #define __reserved
50 #endif
51 #ifndef __in
52 #define __in
53 #endif
54 #ifndef __in_z
55 #define __in_z
56 #endif
57 #ifndef __in_opt
58 #define __in_opt
59 #endif
60 #ifndef __out_opt
61 #define __out_opt
62 #endif
63 #ifndef __out_ecount_z
64 #define __out_ecount_z(x)
65 #endif
66 #ifndef __deref_out
67 #define __deref_out
68 #endif