Skip to content

Commit 6fd8c59

Browse files
committed
Don't include the new C API functions
(`Py_(Get|Set)LazyImports(Filter|Mode)`) in the limited API (for now).
1 parent 7a0ddfd commit 6fd8c59

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Include/import.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,13 @@ typedef enum {
9494
PyImport_LAZY_NONE,
9595
} PyImport_LazyImportsMode;
9696

97+
#ifndef Py_LIMITED_API
9798
PyAPI_FUNC(int) PyImport_SetLazyImportsMode(PyImport_LazyImportsMode mode);
9899
PyAPI_FUNC(int) PyImport_SetLazyImportsFilter(PyObject *filter);
99100

100101
PyAPI_FUNC(PyImport_LazyImportsMode) PyImport_GetLazyImportsMode(void);
101102
PyAPI_FUNC(PyObject *) PyImport_GetLazyImportsFilter(void);
103+
#endif
102104

103105
#ifndef Py_LIMITED_API
104106
# define Py_CPYTHON_IMPORT_H

0 commit comments

Comments
 (0)