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