Unverified Kaydet (Commit) 7d35f790 authored tarafından Victor Stinner's avatar Victor Stinner Kaydeden (comit) GitHub

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).
üst 21220bbe
......@@ -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) */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment