diff options
author | Victor Stinner <vstinner@redhat.com> | 2018-10-30 14:32:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-30 14:32:01 +0100 |
commit | 7d35f79012db89ce9a152a77ac6809eb9c34a35d (patch) | |
tree | 52a7140eff4484899540d4e15cf602617f4bcf7b /Python | |
parent | 21220bbe65108f5a763ead24a6b572f80d84c9e2 (diff) | |
download | cpython-git-7d35f79012db89ce9a152a77ac6809eb9c34a35d.tar.gz |
bpo-34403: Always implement _Py_GetForceASCII() (GH-10235)
Compilation fails on macOS because _Py_GetForceASCII() wasn't define:
always implement implement (default implementation: just return 0).
Diffstat (limited to 'Python')
-rw-r--r-- | Python/fileutils.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Python/fileutils.c b/Python/fileutils.c index 1b7e6697c7..b3b7925073 100644 --- a/Python/fileutils.c +++ b/Python/fileutils.c @@ -246,6 +246,12 @@ encode_ascii(const wchar_t *text, char **str, *str = result; return 0; } +#else +int +_Py_GetForceASCII(void) +{ + return 0; +} #endif /* !defined(__APPLE__) && !defined(__ANDROID__) && !defined(MS_WINDOWS) */ |