diff options
author | shadchin <[email protected]> | 2024-08-19 22:30:16 +0300 |
---|---|---|
committer | shadchin <[email protected]> | 2024-08-19 23:09:18 +0300 |
commit | e1507e0cbe5401ad1f7671de7f05cf43e617162e (patch) | |
tree | c2b9cd55a35b042f4b0c4352e871472b2990f173 | |
parent | 6b574dae89c33bed9c1a79a46854a0b35ef10cba (diff) |
Prepare to switch on platform_dispatchers (part 1)
664a0b8555cd24bd063b0fa871e3e5693e856e7d
-rw-r--r-- | contrib/tools/python3/Include/pyconfig-win.h | 7 | ||||
-rw-r--r-- | contrib/tools/python3/Include/pyconfig.h | 23 |
2 files changed, 15 insertions, 15 deletions
diff --git a/contrib/tools/python3/Include/pyconfig-win.h b/contrib/tools/python3/Include/pyconfig-win.h new file mode 100644 index 00000000000..bb262ada0eb --- /dev/null +++ b/contrib/tools/python3/Include/pyconfig-win.h @@ -0,0 +1,7 @@ +// Override _WIN32_WINNT +#undef _WIN32_WINNT +#define _WIN32_WINNT Py_WINVER + +#define Py_NO_ENABLE_SHARED + +#include "../PC/pyconfig.h" diff --git a/contrib/tools/python3/Include/pyconfig.h b/contrib/tools/python3/Include/pyconfig.h index b698ae7bc51..61a18f6c280 100644 --- a/contrib/tools/python3/Include/pyconfig.h +++ b/contrib/tools/python3/Include/pyconfig.h @@ -25,28 +25,21 @@ #endif -#if defined(__linux__) -#include "pyconfig-linux.h" +#if !defined(NDEBUG) && !defined(Py_DEBUG) && !defined(Py_LIMITED_API) && !defined(DISABLE_PYDEBUG) +#define Py_DEBUG +#define GC_NDEBUG #endif #if defined(__APPLE__) && (defined(__aarch64__) || defined(_M_ARM64)) # include "pyconfig-osx-arm64.h" #elif defined(__APPLE__) && (defined(__x86_64__) || defined(_M_X64)) # include "pyconfig-osx-x86_64.h" -#endif - -#if defined(_MSC_VER) -#define NTDDI_VERSION 0x06020000 -#define _WIN32_WINNT 0x0602 -#define Py_NO_ENABLE_SHARED -#include "../PC/pyconfig.h" +#elif defined(_MSC_VER) +# include "pyconfig-win.h" +#else +# include "pyconfig-linux.h" #endif #if defined(_musl_) -#include "pyconfig-musl.h" -#endif - -#if !defined(NDEBUG) && !defined(Py_DEBUG) && !defined(Py_LIMITED_API) && !defined(DISABLE_PYDEBUG) -#define Py_DEBUG -#define GC_NDEBUG +# include "pyconfig-musl.h" #endif |