DIASupport.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- DIASupport.h - Common header includes for DIA ------------*- C++ -*-===//
  7. //
  8. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  9. // See https://llvm.org/LICENSE.txt for license information.
  10. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  11. //
  12. //===----------------------------------------------------------------------===//
  13. // Common defines and header includes for all LLVMDebugInfoPDBDIA. The
  14. // definitions here configure the necessary #defines and include system headers
  15. // in the proper order for using DIA.
  16. //===----------------------------------------------------------------------===//
  17. #ifndef LLVM_DEBUGINFO_PDB_DIA_DIASUPPORT_H
  18. #define LLVM_DEBUGINFO_PDB_DIA_DIASUPPORT_H
  19. // Require at least Vista
  20. #define NTDDI_VERSION NTDDI_VISTA
  21. #define _WIN32_WINNT _WIN32_WINNT_VISTA
  22. #define WINVER _WIN32_WINNT_VISTA
  23. #ifndef NOMINMAX
  24. #define NOMINMAX
  25. #endif
  26. // atlbase.h has to come before windows.h
  27. #include <atlbase.h>
  28. #include <windows.h>
  29. // DIA headers must come after windows headers.
  30. #include <cvconst.h>
  31. #ifdef __clang__
  32. #pragma clang diagnostic push
  33. #pragma clang diagnostic ignored "-Wnon-virtual-dtor"
  34. #endif
  35. #include <dia2.h>
  36. #ifdef __clang__
  37. #pragma clang diagnostic pop
  38. #endif
  39. #include <diacreate.h>
  40. #endif // LLVM_DEBUGINFO_PDB_DIA_DIASUPPORT_H
  41. #ifdef __GNUC__
  42. #pragma GCC diagnostic pop
  43. #endif