◐ Shell
clean mode source ↗

[3.4] bpo-31170: Fix inclusion of expat in Windows build projects by vstinner · Pull Request #3785 · python/cpython

Co-Authored-By: Steve Dower <steve.dower@microsoft.com>

@vstinner vstinner changed the title [3.3] bpo-31170: Fix inclusion of expat in Windows build projects [3.4] bpo-31170: Fix inclusion of expat in Windows build projects

Sep 27, 2017
The standard header stdbool.h is not available
with old Visual Studio compilers

Cherry-picked from libexpat commit b4b89c2ab0cc5325a41360c25ef9d2ccbe617e5c.

expat: Add artificial scopes in xmltok.c utf8_toUtf8() to fix c89 compilation.

Cherry-picked from libexpat commit e0b290eb3d8f4c4b45137a7d7f4f8db812145bd2
Remove the following defines:

* BYTEORDER=1234
* HAVE_MEMMOVE
* USE_PYEXPAT_CAPI
* XML_CONTEXT_BYTES=1024
* XML_DTD
* XML_NS
* XML_STATIC

larryhastings

@larryhastings