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.

28 lines
544 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. typedef void (*dl_funcptr)(void);
  16. #endif
  17. #ifdef __cplusplus
  18. }
  19. #endif
  20. #endif /* !Py_IMPORTDL_H */