gooderp18绿色标准版
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

59 lines
1.4KB

  1. /* src/include/port/win32.h */
  2. /*
  3. * We always rely on the WIN32 macro being set by our build system,
  4. * but _WIN32 is the compiler pre-defined macro. So make sure we define
  5. * WIN32 whenever _WIN32 is set, to facilitate standalone building.
  6. */
  7. #if defined(_WIN32) && !defined(WIN32)
  8. #define WIN32
  9. #endif
  10. /*
  11. * Make sure _WIN32_WINNT has the minimum required value.
  12. * Leave a higher value in place. When building with at least Visual
  13. * Studio 2015 the minimum requirement is Windows Vista (0x0600) to
  14. * get support for GetLocaleInfoEx() with locales. For everything else
  15. * the minimum version is Windows XP (0x0501).
  16. */
  17. #if defined(_MSC_VER) && _MSC_VER >= 1900
  18. #define MIN_WINNT 0x0600
  19. #else
  20. #define MIN_WINNT 0x0501
  21. #endif
  22. #if defined(_WIN32_WINNT) && _WIN32_WINNT < MIN_WINNT
  23. #undef _WIN32_WINNT
  24. #endif
  25. #ifndef _WIN32_WINNT
  26. #define _WIN32_WINNT MIN_WINNT
  27. #endif
  28. /*
  29. * We need to prevent <crtdefs.h> from defining a symbol conflicting with
  30. * our errcode() function. Since it's likely to get included by standard
  31. * system headers, pre-emptively include it now.
  32. */
  33. #if _MSC_VER >= 1400 || defined(HAVE_CRTDEFS_H)
  34. #define errcode __msvc_errcode
  35. #include <crtdefs.h>
  36. #undef errcode
  37. #endif
  38. /*
  39. * defines for dynamic linking on Win32 platform
  40. */
  41. #ifdef BUILDING_DLL
  42. #define PGDLLIMPORT __declspec (dllexport)
  43. #else
  44. #define PGDLLIMPORT __declspec (dllimport)
  45. #endif
  46. #ifdef _MSC_VER
  47. #define PGDLLEXPORT __declspec (dllexport)
  48. #else
  49. #define PGDLLEXPORT
  50. #endif
上海开阖软件有限公司 沪ICP备12045867号-1