mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-85283: Build _testimportmultiple with limited C API (#110954)
This commit is contained in:
parent
86559ddfec
commit
cf9c25c719
3 changed files with 8 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue