From 7d35f79012db89ce9a152a77ac6809eb9c34a35d Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 30 Oct 2018 14:32:01 +0100 Subject: 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). --- Python/fileutils.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Python/fileutils.c b/Python/fileutils.c index 1b7e669..b3b7925 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) */ -- cgit v0.12