python_ver_rc.h 969 B

12345678910111213141516171819202122232425262728293031323334
  1. // Resource script for Python core DLL.
  2. // Currently only holds version information.
  3. //
  4. #pragma code_page(1252)
  5. #include "winver.h"
  6. #define PYTHON_COMPANY "Python Software Foundation"
  7. #define PYTHON_COPYRIGHT "Copyright \xA9 2001-2023 Python Software Foundation. Copyright \xA9 2000 BeOpen.com. Copyright \xA9 1995-2001 CNRI. Copyright \xA9 1991-1995 SMC."
  8. #define MS_WINDOWS
  9. #include "modsupport.h"
  10. #include "patchlevel.h"
  11. #ifdef _DEBUG
  12. # define PYTHON_DEBUG_EXT "_d"
  13. #else
  14. # define PYTHON_DEBUG_EXT
  15. #endif
  16. /* e.g., 3.3.0a1
  17. * PY_VERSION comes from patchlevel.h
  18. */
  19. #define PYTHON_VERSION PY_VERSION "\0"
  20. /* 64-bit version number as comma-separated list of 4 16-bit ints */
  21. #if PY_MICRO_VERSION > 64
  22. # error "PY_MICRO_VERSION > 64"
  23. #endif
  24. #if PY_RELEASE_LEVEL > 99
  25. # error "PY_RELEASE_LEVEL > 99"
  26. #endif
  27. #if PY_RELEASE_SERIAL > 9
  28. # error "PY_RELEASE_SERIAL > 9"
  29. #endif
  30. #define PYVERSION64 PY_MAJOR_VERSION, PY_MINOR_VERSION, FIELD3, PYTHON_API_VERSION