gh-137210: Move PYTHON_API_VERSION & PYTHON_ABI_VERSION to patchlevel.h (GH-138545)

Move PYTHON_API_VERSION & PYTHON_ABI_VERSION to patchlevel.h

This allows removing #include "modsupport.h" from python_ver_rc.h,
which allows modsupport.h to use common helpers from Python.h --
specifically, `_Py_PACK_VERSION` for defining limited API.
This commit is contained in:
Petr Viktorin
2025-09-08 12:02:13 +02:00
committed by GitHub
parent 3255c0c870
commit 097c563e7b
3 changed files with 16 additions and 54 deletions

View File

@@ -8,7 +8,6 @@
#define PYTHON_COPYRIGHT "Copyright \xA9 2001 Python Software Foundation. Copyright \xA9 2000 BeOpen.com. Copyright \xA9 1995-2001 CNRI. Copyright \xA9 1991-1995 SMC."
#define MS_WINDOWS
#include "modsupport.h"
#include "patchlevel.h"
#ifdef Py_DEBUG
# define PYTHON_DEBUG_EXT "_d"