1999-12-20 21:22:24 +00:00
|
|
|
#ifndef Py_IMPORTDL_H
|
|
|
|
#define Py_IMPORTDL_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
1995-01-02 19:04:15 +00:00
|
|
|
|
2012-05-04 19:20:40 +00:00
|
|
|
extern const char *_PyImport_DynLoadFiletab[];
|
1995-01-02 19:04:15 +00:00
|
|
|
|
2011-03-14 19:54:07 +00:00
|
|
|
extern PyObject *_PyImport_LoadDynamicModule(PyObject *name, PyObject *pathname,
|
2010-05-09 15:52:27 +00:00
|
|
|
FILE *);
|
1995-01-02 19:04:15 +00:00
|
|
|
|
1997-07-21 14:54:36 +00:00
|
|
|
/* Max length of module suffix searched for -- accommodates "module.slb" */
|
|
|
|
#define MAXSUFFIXSIZE 12
|
1999-12-20 21:22:24 +00:00
|
|
|
|
|
|
|
#ifdef MS_WINDOWS
|
1999-12-20 22:55:03 +00:00
|
|
|
#include <windows.h>
|
1999-12-20 21:22:24 +00:00
|
|
|
typedef FARPROC dl_funcptr;
|
|
|
|
#else
|
2002-02-26 11:41:34 +00:00
|
|
|
#if defined(PYOS_OS2) && !defined(PYCC_GCC)
|
2001-11-05 02:45:59 +00:00
|
|
|
#include <os2def.h>
|
1999-12-20 21:22:24 +00:00
|
|
|
typedef int (* APIENTRY dl_funcptr)();
|
|
|
|
#else
|
|
|
|
typedef void (*dl_funcptr)(void);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* !Py_IMPORTDL_H */
|