blob: 12bd071c49c04a514978a402067051f8461a4cbf [file] [log] [blame]
Olivier Deprezf4ef2d02021-04-20 13:36:24 +02001#ifndef Py_FILEUTILS_H
2#define Py_FILEUTILS_H
3#ifdef __cplusplus
4extern "C" {
5#endif
6
7#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
8PyAPI_FUNC(wchar_t *) Py_DecodeLocale(
9 const char *arg,
10 size_t *size);
11
12PyAPI_FUNC(char*) Py_EncodeLocale(
13 const wchar_t *text,
14 size_t *error_pos);
15
16PyAPI_FUNC(char*) _Py_EncodeLocaleRaw(
17 const wchar_t *text,
18 size_t *error_pos);
19#endif
20
21#ifndef Py_LIMITED_API
22# define Py_CPYTHON_FILEUTILS_H
23# include "cpython/fileutils.h"
24# undef Py_CPYTHON_FILEUTILS_H
25#endif
26
27#ifdef __cplusplus
28}
29#endif
30#endif /* !Py_FILEUTILS_H */