blob: 16f3b635deed89472da06e0751ab6900bbd6e92d [file] [log] [blame]
Victor Stinner4e314432010-10-07 21:45:39 +00001#ifndef Py_FILEUTILS_H
2#define Py_FILEUTILS_H
Victor Stinner4e314432010-10-07 21:45:39 +00003#ifdef __cplusplus
4extern "C" {
5#endif
6
Victor Stinner9fc57a32018-11-07 00:44:03 +01007#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);
Victor Stinner9fc57a32018-11-07 00:44:03 +010015#endif
16
Serhiy Storchaka12ebbc72015-02-22 19:39:36 +020017#ifndef Py_LIMITED_API
Victor Stinner8c3aee62020-02-12 23:55:09 +010018# define Py_CPYTHON_FILEUTILS_H
19# include "cpython/fileutils.h"
20# undef Py_CPYTHON_FILEUTILS_H
Stéphane Wirtel74a8b6e2018-10-18 01:05:04 +020021#endif
22
Victor Stinner4e314432010-10-07 21:45:39 +000023#ifdef __cplusplus
24}
25#endif
Victor Stinner4e314432010-10-07 21:45:39 +000026#endif /* !Py_FILEUTILS_H */