fileutils.h 507 B

1234567891011121314151617181920212223242526
  1. #ifndef Py_FILEUTILS_H
  2. #define Py_FILEUTILS_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
  7. PyAPI_FUNC(wchar_t *) Py_DecodeLocale(
  8. const char *arg,
  9. size_t *size);
  10. PyAPI_FUNC(char*) Py_EncodeLocale(
  11. const wchar_t *text,
  12. size_t *error_pos);
  13. #endif
  14. #ifndef Py_LIMITED_API
  15. # define Py_CPYTHON_FILEUTILS_H
  16. # include "cpython/fileutils.h"
  17. # undef Py_CPYTHON_FILEUTILS_H
  18. #endif
  19. #ifdef __cplusplus
  20. }
  21. #endif
  22. #endif /* !Py_FILEUTILS_H */