]> granicus.if.org Git - python/commitdiff
Define VERSION in expat.h.
authorMartin v. Löwis <martin@v.loewis.de>
Wed, 13 Feb 2002 07:47:16 +0000 (07:47 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Wed, 13 Feb 2002 07:47:16 +0000 (07:47 +0000)
Modules/expat/expat.h
PCbuild/pyexpat.dsp
setup.py

index 7642512289217c423a351d0766363bbce06faf4c..9259a45486ea6d32cc57f6aafb496a8f6b1a4c94 100644 (file)
@@ -724,6 +724,10 @@ typedef struct {
 XMLPARSEAPI(XML_Expat_Version)
 XML_ExpatVersionInfo(void);
 
+/* VERSION is not defined in expat.h.in, but it really belongs here,
+   and defining it on the command line gives difficulties with MSVC. */
+#define VERSION "1.95.2"
+
 #define XML_MAJOR_VERSION 1
 #define XML_MINOR_VERSION 95
 #define XML_MICRO_VERSION 2
index 66910d020d9e8421d59ab60493d46769fca86b8d..9d2f7eaf4642fd2f6fc157d50413fb2b9210fc06 100755 (executable)
@@ -45,7 +45,7 @@ CFG=pyexpat - Win32 Alpha Debug
 F90=df.exe\r
 CPP=cl.exe\r
 # ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c\r
-# ADD CPP /nologo /MD /W3 /GX /Zi /O2 /I "..\Include" /I "..\PC" /I "..\Modules\expat" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "HAVE_EXPAT_H" /D "XML_NS" /D "XML_DTD" /D XML_BYTE_ORDER=12 /D XML_CONTEXT_BYTES=1024 /D VERSION=\"1.95.2\" /YX /FD /c\r
+# ADD CPP /nologo /MD /W3 /GX /Zi /O2 /I "..\Include" /I "..\PC" /I "..\Modules\expat" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "HAVE_EXPAT_H" /D "XML_NS" /D "XML_DTD" /D XML_BYTE_ORDER=12 /D XML_CONTEXT_BYTES=1024 /YX /FD /c\r
 MTL=midl.exe\r
 # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32\r
 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32\r
@@ -76,7 +76,7 @@ LINK32=link.exe
 F90=df.exe\r
 CPP=cl.exe\r
 # ADD BASE CPP /nologo /MTd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c\r
-# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\Include" /I "..\PC" /I "..\Modules\expat" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "HAVE_EXPAT_H" /D "XML_NS" /D "XML_DTD" /D XML_BYTE_ORDER=12 /D XML_CONTEXT_BYTES=1024 /D VERSION="1.95.2" /YX /FD /c\r
+# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\Include" /I "..\PC" /I "..\Modules\expat" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "HAVE_EXPAT_H" /D "XML_NS" /D "XML_DTD" /D XML_BYTE_ORDER=12 /D XML_CONTEXT_BYTES=1024 /YX /FD /c\r
 MTL=midl.exe\r
 # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32\r
 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32\r
index 6270f41fefa092d5582c833bc63351b407f1bf38..d928775dc8e5a6a02b57947935676a3a604e81cd 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -567,7 +567,6 @@ class PyBuildExt(build_ext):
             ],
                               define_macros = [
             ('HAVE_EXPAT_H',None),
-            ('VERSION', '"1.95.2"'),
             ('XML_NS', '1'),
             ('XML_DTD', '1'),
             ('XML_BYTE_ORDER', xmlbo),