mirror of
https://github.com/python/cpython.git
synced 2026-04-22 03:41:08 +00:00
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).
This commit is contained in:
parent
21220bbe65
commit
7d35f79012
1 changed files with 6 additions and 0 deletions
|
|
@ -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) */
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue