]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.4] bpo-31170: Fix inclusion of expat in Windows build projects (#3785)
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 29 Nov 2017 18:50:42 +0000 (19:50 +0100)
committerlarryhastings <larry@hastings.org>
Wed, 29 Nov 2017 18:50:42 +0000 (10:50 -0800)
commit8b11e8de7aedacfbbcc8c780f3c4097396f1d1a3
treee8639b26380e3f0f309a9cac57b40d2a3ddc9f7d
parent5d7fc42cf8f4e40603170ee34cf3edb471070d77
[3.4] bpo-31170: Fix inclusion of expat in Windows build projects (#3785)

* bpo-31170: Fix inclusion of expat in Windows build projects

Co-Authored-By: Steve Dower <steve.dower@microsoft.com>
* expat: Fix compilation on Visual Studio 2010

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

* Expat: fix preprocessor defines in VS projects

Remove the following defines:

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

* PCbuild/pyexpat.vcxproj: define _CRT_SECURE_NO_WARNINGS
Modules/expat/xmltok.c
PC/VS9.0/_elementtree.vcproj
PC/VS9.0/pyexpat.vcproj
PCbuild/_elementtree.vcxproj
PCbuild/_elementtree.vcxproj.filters
PCbuild/pyexpat.vcxproj
PCbuild/pyexpat.vcxproj.filters