Skip to content

Commit 8fef47b

Browse files
committed
Define VERSION in expat.h.
1 parent 9ad4b68 commit 8fef47b

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

Modules/expat/expat.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,10 @@ typedef struct {
724724
XMLPARSEAPI(XML_Expat_Version)
725725
XML_ExpatVersionInfo(void);
726726

727+
/* VERSION is not defined in expat.h.in, but it really belongs here,
728+
and defining it on the command line gives difficulties with MSVC. */
729+
#define VERSION "1.95.2"
730+
727731
#define XML_MAJOR_VERSION 1
728732
#define XML_MINOR_VERSION 95
729733
#define XML_MICRO_VERSION 2

PCbuild/pyexpat.dsp

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,6 @@ def detect_modules(self):
567567
],
568568
define_macros = [
569569
('HAVE_EXPAT_H',None),
570-
('VERSION', '"1.95.2"'),
571570
('XML_NS', '1'),
572571
('XML_DTD', '1'),
573572
('XML_BYTE_ORDER', xmlbo),

0 commit comments

Comments
 (0)