PageRenderTime 26ms CodeModel.GetById 18ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/reporting/crashrpt/Prefastdef.h

http://crashrpt.googlecode.com/
C++ Header | 68 lines | 26 code | 5 blank | 37 comment | 0 complexity | 7ab128f808ac2375922e340a44e21eab MD5 | raw file
 1/************************************************************************************* 
 2This file is a part of CrashRpt library.
 3
 4Copyright (c) 2003, Michael Carruth
 5All rights reserved.
 6
 7Redistribution and use in source and binary forms, with or without modification, 
 8are permitted provided that the following conditions are met:
 9
10* Redistributions of source code must retain the above copyright notice, this 
11list of conditions and the following disclaimer.
12
13* Redistributions in binary form must reproduce the above copyright notice, 
14this list of conditions and the following disclaimer in the documentation 
15and/or other materials provided with the distribution.
16
17* Neither the name of the author nor the names of its contributors 
18may be used to endorse or promote products derived from this software without 
19specific prior written permission.
20
21
22THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
23EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 
24OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 
25SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 
26INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED 
27TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
28BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 
29STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 
30OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31***************************************************************************************/
32
33/*! \file   Prefastdef.h
34*  \brief  SAL macro switches.
35*  \date   2003-2011
36*  \author zeXspectrum 
37*/
38
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