DIASupport.h 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. //===- DIASupport.h - Common header includes for DIA ------------*- C++ -*-===//
  2. //
  3. // The LLVM Compiler Infrastructure
  4. //
  5. // This file is distributed under the University of Illinois Open Source
  6. // License. See LICENSE.TXT for details.
  7. //
  8. //===----------------------------------------------------------------------===//
  9. // Common defines and header includes for all LLVMDebugInfoPDBDIA. The
  10. // definitions here configure the necessary #defines and include system headers
  11. // in the proper order for using DIA.
  12. //===----------------------------------------------------------------------===//
  13. #ifndef LLVM_DEBUGINFO_PDB_DIA_DIASUPPORT_H
  14. #define LLVM_DEBUGINFO_PDB_DIA_DIASUPPORT_H
  15. // Require at least Vista
  16. #define NTDDI_VERSION NTDDI_VISTA
  17. #define _WIN32_WINNT _WIN32_WINNT_VISTA
  18. #define WINVER _WIN32_WINNT_VISTA
  19. #ifndef NOMINMAX
  20. #define NOMINMAX
  21. #endif
  22. // atlbase.h has to come before windows.h
  23. #include <atlbase.h>
  24. #include <windows.h>
  25. // DIA headers must come after windows headers.
  26. #include <cvconst.h>
  27. #include <dia2.h>
  28. #endif // LLVM_DEBUGINFO_PDB_DIA_DIASUPPORT_H