gh-110968: Py_MOD_PER_INTERPRETER_GIL_SUPPORTED was added to 3.12 (#111584)

This commit is contained in:
Victor Stinner 2023-11-01 04:24:33 +01:00 committed by GitHub
parent 102685c4c8
commit ef83b3fc00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 23 additions and 23 deletions

View file

@ -5,8 +5,8 @@ posixshmem - A Python extension that provides shm_open() and shm_unlink()
#include "pyconfig.h" // Py_NOGIL
#ifndef Py_NOGIL
// Need limited C API version 3.13 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
#define Py_LIMITED_API 0x030d0000
// Need limited C API version 3.12 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
#define Py_LIMITED_API 0x030c0000
#endif
#include <Python.h>