pyconfig.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #pragma once
  2. #if defined(Py_BUILD_CORE) || defined(Py_BUILD_CORE_BUILTIN) || defined(Py_BUILD_CORE_MODULE)
  3. #define ABIFLAGS ""
  4. #define PREFIX "/var/empty"
  5. #define EXEC_PREFIX "/var/empty"
  6. #define VERSION "3.10"
  7. #define VPATH ""
  8. #define BLAKE2_USE_SSE
  9. #define USE_ZLIB_CRC32
  10. #if defined(__linux__)
  11. #define PLATFORM "linux"
  12. #define MULTIARCH "x86_64-linux-gnu"
  13. #define SOABI "cpython-310-x86_64-linux-gnu"
  14. #elif defined(__APPLE__)
  15. #define PLATFORM "darwin"
  16. #define MULTIARCH "darwin"
  17. #define SOABI "cpython-310-darwin"
  18. #endif
  19. #endif
  20. #define PLATLIBDIR "lib"
  21. #if defined(__linux__)
  22. #include "pyconfig-linux.h"
  23. #endif
  24. #if defined(__APPLE__)
  25. # if defined(__arm64__)
  26. # include "pyconfig-osx-arm64.h"
  27. # else
  28. # include "pyconfig-osx.h"
  29. # endif
  30. #endif
  31. #if defined(_MSC_VER)
  32. #define NTDDI_VERSION 0x06020000
  33. #define _WIN32_WINNT 0x0602
  34. #define Py_NO_ENABLE_SHARED
  35. #include "../PC/pyconfig.h"
  36. #endif
  37. #if defined(_musl_)
  38. #include "pyconfig-musl.h"
  39. #endif
  40. #if !defined(NDEBUG) && !defined(Py_DEBUG) && !defined(Py_LIMITED_API) && !defined(DISABLE_PYDEBUG)
  41. #define Py_DEBUG
  42. #define GC_NDEBUG
  43. #endif