Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
999 B

  1. #ifndef NOVINT_HFX_CONFIG_H
  2. #define NOVINT_HFX_CONFIG_H
  3. // COMPILER VERSION
  4. #if _MSC_VER
  5. #if _MSC_VER >= 1500
  6. #define HFX_MSVC9
  7. #define HFX_MSVC 9 // Microsoft Visual C++ 2008
  8. #elif _MSC_VER >= 1400
  9. #define HFX_MSVC8
  10. #define HFX_MSVC 8 // Microsoft Visual C++ 2005
  11. #elif _MSC_VER >= 1300
  12. #define HFX_MSVC7
  13. #define HFX_MSVC 7 // Microsoft Visual C++ 2003
  14. #else
  15. #define HFX_MSVC6
  16. #define HFX_MSVC 6 // Microsoft Visual C++ 6
  17. #endif
  18. #endif
  19. //HFX_PURE_INTERFACE
  20. #if HFX_MSVC >= 7
  21. #define HFX_PURE_INTERFACE __declspec(novtable)
  22. #else
  23. #define HFX_PURE_INTERFACE
  24. #endif
  25. //HFX_ABSTRACT
  26. #if HFX_MSVC >= 8
  27. #define HFX_ABSTRACT abstract
  28. #else
  29. #define HFX_ABSTRACT
  30. #endif
  31. #define HFX_EXPLICIT explicit
  32. //HFX_INLINE
  33. #if _MSC_VER>=1000
  34. #define HFX_INLINE __forceinline
  35. #else
  36. #define HFX_INLINE inline
  37. #endif
  38. //HFX_ALIGN
  39. #if HFX_MSVC > 6
  40. #define HFX_ALIGN(nBits) __declspec(align(nBits))
  41. #else
  42. #define HFX_ALIGN(nBits)
  43. #endif
  44. #define HFX_MEMSET memset
  45. #define HFX_MEMCPY memcpy
  46. #endif