Haibo Huang | d883030 | 2020-03-03 10:09:46 -0800 | [diff] [blame] | 1 | #ifndef Py_FILEUTILS_H |
| 2 | #define Py_FILEUTILS_H |
| 3 | #ifdef __cplusplus |
| 4 | extern "C" { |
| 5 | #endif |
| 6 | |
| 7 | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000 |
| 8 | PyAPI_FUNC(wchar_t *) Py_DecodeLocale( |
| 9 | const char *arg, |
| 10 | size_t *size); |
| 11 | |
| 12 | PyAPI_FUNC(char*) Py_EncodeLocale( |
| 13 | const wchar_t *text, |
| 14 | size_t *error_pos); |
Haibo Huang | d883030 | 2020-03-03 10:09:46 -0800 | [diff] [blame] | 15 | #endif |
| 16 | |
Haibo Huang | d883030 | 2020-03-03 10:09:46 -0800 | [diff] [blame] | 17 | #ifndef Py_LIMITED_API |
Haibo Huang | 5eba2b4 | 2021-01-22 11:22:02 -0800 | [diff] [blame] | 18 | # define Py_CPYTHON_FILEUTILS_H |
| 19 | # include "cpython/fileutils.h" |
| 20 | # undef Py_CPYTHON_FILEUTILS_H |
Haibo Huang | d883030 | 2020-03-03 10:09:46 -0800 | [diff] [blame] | 21 | #endif |
| 22 | |
Haibo Huang | d883030 | 2020-03-03 10:09:46 -0800 | [diff] [blame] | 23 | #ifdef __cplusplus |
| 24 | } |
| 25 | #endif |
| 26 | #endif /* !Py_FILEUTILS_H */ |