You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
660 B

  1. #ifndef Py_IMPORTDL_H
  2. #define Py_IMPORTDL_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. extern const char *_PyImport_DynLoadFiletab[];
  7. extern PyObject *_PyImport_LoadDynamicModule(PyObject *name, PyObject *pathname,
  8. FILE *);
  9. /* Max length of module suffix searched for -- accommodates "module.slb" */
  10. #define MAXSUFFIXSIZE 12
  11. #ifdef MS_WINDOWS
  12. #include <windows.h>
  13. typedef FARPROC dl_funcptr;
  14. #else
  15. #if defined(PYOS_OS2) && !defined(PYCC_GCC)
  16. #include <os2def.h>
  17. typedef int (* APIENTRY dl_funcptr)();
  18. #else
  19. typedef void (*dl_funcptr)(void);
  20. #endif
  21. #endif
  22. #ifdef __cplusplus
  23. }
  24. #endif
  25. #endif /* !Py_IMPORTDL_H */