gh-108494: Fix Argument Clinic LIMITED_CAPI_REGEX (#116610)

Accept spaces in "#  define Py_LIMITED_API 0x030d0000".
This commit is contained in:
Victor Stinner 2024-03-11 23:42:18 +01:00 committed by GitHub
parent 06e29a224f
commit 2b67fc57f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 35 additions and 45 deletions

View file

@ -3,11 +3,10 @@
* using the SystemConfiguration framework.
*/
#include "pyconfig.h" // Py_GIL_DISABLED
#ifndef Py_GIL_DISABLED
// Need limited C API version 3.12 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
#define Py_LIMITED_API 0x030c0000
#include "pyconfig.h" // Py_GIL_DISABLED
#ifndef Py_GIL_DISABLED
# define Py_LIMITED_API 0x030c0000
#endif
#include <Python.h>