From: Victor Stinner Date: Tue, 30 Oct 2018 13:32:01 +0000 (+0100) Subject: bpo-34403: Always implement _Py_GetForceASCII() (GH-10235) X-Git-Tag: v3.7.2rc1~204 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7d35f79012db89ce9a152a77ac6809eb9c34a35d;p=thirdparty%2FPython%2Fcpython.git 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). --- diff --git a/Python/fileutils.c b/Python/fileutils.c index 1b7e6697c74a..b3b7925073b2 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) */