blob: 9847652b1f1b31ceec1e9390fbbbce1702348a6e [file] [log] [blame]
Guido van Rossum9f650811999-12-20 21:22:24 +00001#ifndef Py_IMPORTDL_H
2#define Py_IMPORTDL_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
Guido van Rossum1ae940a1995-01-02 19:04:15 +00008
Brett Cannon2657df42012-05-04 15:20:40 -04009extern const char *_PyImport_DynLoadFiletab[];
Guido van Rossum1ae940a1995-01-02 19:04:15 +000010
Nick Coghland5cacbb2015-05-23 22:24:10 +100011extern PyObject *_PyImport_LoadDynamicModuleWithSpec(PyObject *spec, FILE *);
Guido van Rossum1ae940a1995-01-02 19:04:15 +000012
Guido van Rossumef3d02e1997-07-21 14:54:36 +000013/* Max length of module suffix searched for -- accommodates "module.slb" */
14#define MAXSUFFIXSIZE 12
Guido van Rossum9f650811999-12-20 21:22:24 +000015
16#ifdef MS_WINDOWS
Guido van Rossum95288861999-12-20 22:55:03 +000017#include <windows.h>
Guido van Rossum9f650811999-12-20 21:22:24 +000018typedef FARPROC dl_funcptr;
19#else
Guido van Rossum9f650811999-12-20 21:22:24 +000020typedef void (*dl_funcptr)(void);
21#endif
Guido van Rossum9f650811999-12-20 21:22:24 +000022
23
24#ifdef __cplusplus
25}
26#endif
27#endif /* !Py_IMPORTDL_H */