Issue #16330: Fix compilation on Windows

This commit is contained in:
Victor Stinner 2012-10-30 02:30:31 +01:00
parent 266f882dca
commit b9e2d3f884

View file

@ -191,7 +191,7 @@ static const struct dbcs_map *mapping_list;
if (Py_UNICODE_IS_HIGH_SURROGATE(c)) { \
REQUIRE_INBUF(2) \
if (Py_UNICODE_IS_LOW_SURROGATE(IN2)) { \
c = Py_UNICODE_JOIN_SURROGATES(c, IN2) \
c = Py_UNICODE_JOIN_SURROGATES(c, IN2); \
} \
}
#define GET_INSIZE(c) ((c) > 0xffff ? 2 : 1)