mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
Fix missing lazy-related symbols for the JIT (#34)
* fix missing `PyLazyImport_CheckExact` * fix missing lazy-related symbols * fix missing lazy-related symbols * `extern` seems enough * Export _PyImport_LoadLazyImportTstate for JIT
This commit is contained in:
parent
c4ed3c4119
commit
5000033162
5 changed files with 18 additions and 5 deletions
|
|
@ -2,12 +2,17 @@
|
|||
|
||||
/* Lazy object interface */
|
||||
|
||||
#ifndef Py_LAZYIMPORTOBJECT_H
|
||||
#define Py_LAZYIMPORTOBJECT_H
|
||||
#ifndef Py_INTERNAL_LAZYIMPORTOBJECT_H
|
||||
#define Py_INTERNAL_LAZYIMPORTOBJECT_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef Py_BUILD_CORE
|
||||
# error "this header requires Py_BUILD_CORE define"
|
||||
#endif
|
||||
|
||||
PyAPI_DATA(PyTypeObject) PyLazyImport_Type;
|
||||
#define PyLazyImport_CheckExact(op) Py_IS_TYPE((op), &PyLazyImport_Type)
|
||||
|
||||
|
|
@ -28,4 +33,4 @@ PyAPI_FUNC(PyObject *) _PyLazyImport_New(PyObject *import_func, PyObject *from,
|
|||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* !Py_LAZYIMPORTOBJECT_H */
|
||||
#endif /* !Py_INTERNAL_LAZYIMPORTOBJECT_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue