summaryrefslogtreecommitdiff
path: root/Python/importdl.h
diff options
context:
space:
mode:
Diffstat (limited to 'Python/importdl.h')
-rw-r--r--Python/importdl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Python/importdl.h b/Python/importdl.h
index 9847652b1f..26d18b626d 100644
--- a/Python/importdl.h
+++ b/Python/importdl.h
@@ -10,6 +10,14 @@ extern const char *_PyImport_DynLoadFiletab[];
extern PyObject *_PyImport_LoadDynamicModuleWithSpec(PyObject *spec, FILE *);
+typedef PyObject *(*PyModInitFunction)(void);
+
+#if defined(__EMSCRIPTEN__) && defined(PY_CALL_TRAMPOLINE)
+extern PyObject *_PyImport_InitFunc_TrampolineCall(PyModInitFunction func);
+#else
+#define _PyImport_InitFunc_TrampolineCall(func) (func)()
+#endif
+
/* Max length of module suffix searched for -- accommodates "module.slb" */
#define MAXSUFFIXSIZE 12