mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Patch #569753: Remove support for WIN16.
Rename all occurrences of MS_WIN32 to MS_WINDOWS.
This commit is contained in:
parent
adfa7409f8
commit
6238d2b024
18 changed files with 102 additions and 241 deletions
|
|
@ -316,7 +316,7 @@ charmap_decode(PyObject *self,
|
|||
size);
|
||||
}
|
||||
|
||||
#if defined(MS_WIN32) && defined(HAVE_USABLE_WCHAR_T)
|
||||
#if defined(MS_WINDOWS) && defined(HAVE_USABLE_WCHAR_T)
|
||||
|
||||
static PyObject *
|
||||
mbcs_decode(PyObject *self,
|
||||
|
|
@ -334,7 +334,7 @@ mbcs_decode(PyObject *self,
|
|||
size);
|
||||
}
|
||||
|
||||
#endif /* MS_WIN32 */
|
||||
#endif /* MS_WINDOWS */
|
||||
|
||||
/* --- Encoder ------------------------------------------------------------ */
|
||||
|
||||
|
|
@ -636,7 +636,7 @@ charmap_encode(PyObject *self,
|
|||
return v;
|
||||
}
|
||||
|
||||
#if defined(MS_WIN32) && defined(HAVE_USABLE_WCHAR_T)
|
||||
#if defined(MS_WINDOWS) && defined(HAVE_USABLE_WCHAR_T)
|
||||
|
||||
static PyObject *
|
||||
mbcs_encode(PyObject *self,
|
||||
|
|
@ -661,7 +661,7 @@ mbcs_encode(PyObject *self,
|
|||
return v;
|
||||
}
|
||||
|
||||
#endif /* MS_WIN32 */
|
||||
#endif /* MS_WINDOWS */
|
||||
#endif /* Py_USING_UNICODE */
|
||||
|
||||
/* --- Module API --------------------------------------------------------- */
|
||||
|
|
@ -695,7 +695,7 @@ static PyMethodDef _codecs_functions[] = {
|
|||
{"charmap_decode", charmap_decode, METH_VARARGS},
|
||||
{"readbuffer_encode", readbuffer_encode, METH_VARARGS},
|
||||
{"charbuffer_encode", charbuffer_encode, METH_VARARGS},
|
||||
#if defined(MS_WIN32) && defined(HAVE_USABLE_WCHAR_T)
|
||||
#if defined(MS_WINDOWS) && defined(HAVE_USABLE_WCHAR_T)
|
||||
{"mbcs_encode", mbcs_encode, METH_VARARGS},
|
||||
{"mbcs_decode", mbcs_decode, METH_VARARGS},
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue