gh-85283: Build _testimportmultiple with limited C API (#110954)

This commit is contained in:
Victor Stinner 2023-10-17 02:27:15 +02:00 committed by GitHub
parent 86559ddfec
commit cf9c25c719
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 4 deletions

View file

@ -3,7 +3,10 @@
* file (issue16421). This file defines 3 modules (_testimportmodule,
* foo, bar), only the first one is called the same as the compiled file.
*/
#include<Python.h>
#define Py_LIMITED_API 0x030d0000
#include <Python.h>
static struct PyModuleDef _testimportmultiple = {
PyModuleDef_HEAD_INIT,
@ -54,4 +57,3 @@ static struct PyModuleDef _barmodule = {
PyMODINIT_FUNC PyInit__testimportmultiple_bar(void){
return PyModule_Create(&_barmodule);
}