diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 8c1db7eb00d..9c35e2d5445 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -1483,7 +1483,9 @@ PyObject *PyUnicode_AsASCIIString(PyObject *unicode) } #ifdef MS_WIN32 + /* --- MBCS codecs for Windows -------------------------------------------- */ + PyObject *PyUnicode_DecodeMBCS(const char *s, int size, const char *errors) @@ -1536,6 +1538,7 @@ PyObject *PyUnicode_EncodeMBCS(const Py_UNICODE *p, } return repr; } + #endif /* MS_WIN32 */ /* --- Character Mapping Codec -------------------------------------------- */