- Notifications
You must be signed in to change notification settings - Fork 31.7k
/
Copy pathimportdl.h
27 lines (19 loc) · 487 Bytes
/
importdl.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndefPy_IMPORTDL_H
#definePy_IMPORTDL_H
#ifdef__cplusplus
extern"C" {
#endif
externconstchar*_PyImport_DynLoadFiletab[];
externPyObject*_PyImport_LoadDynamicModuleWithSpec(PyObject*spec, FILE*);
/* Max length of module suffix searched for -- accommodates "module.slb" */
#defineMAXSUFFIXSIZE 12
#ifdefMS_WINDOWS
#include<windows.h>
typedefFARPROCdl_funcptr;
#else
typedefvoid (*dl_funcptr)(void);
#endif
#ifdef__cplusplus
}
#endif
#endif/* !Py_IMPORTDL_H */