[Python-checkins] r62019 - in python/trunk: Modules/socketmodule.c PC/VC6/pythoncore.dsp PC/VS7.1/_elementtree.vcproj PC/VS7.1/_tkinter.vcproj PC/VS7.1/make_versioninfo.vcproj PC/VS7.1/pyexpat.vcproj PC/VS7.1/python.vcproj PC/VS7.1/pythoncore.vcproj PC/VS8.0/_elementtree.vcproj PC/VS8.0/make_versioninfo.vcproj PC/VS8.0/python.vcproj PC/VS8.0/pythoncore.vcproj PC/pyconfig.h

amaury.forgeotdarc python-checkins at python.org
Fri Mar 28 22:55:29 CET 2008


Author: amaury.forgeotdarc
Date: Fri Mar 28 22:55:29 2008
New Revision: 62019

Modified:
   python/trunk/Modules/socketmodule.c
   python/trunk/PC/VC6/pythoncore.dsp
   python/trunk/PC/VS7.1/_elementtree.vcproj
   python/trunk/PC/VS7.1/_tkinter.vcproj
   python/trunk/PC/VS7.1/make_versioninfo.vcproj
   python/trunk/PC/VS7.1/pyexpat.vcproj
   python/trunk/PC/VS7.1/python.vcproj
   python/trunk/PC/VS7.1/pythoncore.vcproj
   python/trunk/PC/VS8.0/_elementtree.vcproj
   python/trunk/PC/VS8.0/make_versioninfo.vcproj
   python/trunk/PC/VS8.0/python.vcproj
   python/trunk/PC/VS8.0/pythoncore.vcproj
   python/trunk/PC/pyconfig.h
Log:
Repair compilation for Visual Studio 2005.

I applied the same changes manually to VS7.1 and VC6 files; completely untested.

(Christian, don't try too hard merging this change into py3k. 
It will be easier to do the same work again on the branch)


Modified: python/trunk/Modules/socketmodule.c
==============================================================================
--- python/trunk/Modules/socketmodule.c	(original)
+++ python/trunk/Modules/socketmodule.c	Fri Mar 28 22:55:29 2008
@@ -5230,8 +5230,12 @@
 	PyModule_AddIntConstant(m, "RCVALL_OFF", RCVALL_OFF);
 	PyModule_AddIntConstant(m, "RCVALL_ON", RCVALL_ON);
 	PyModule_AddIntConstant(m, "RCVALL_SOCKETLEVELONLY", RCVALL_SOCKETLEVELONLY);
+#ifdef RCVALL_IPLEVEL
 	PyModule_AddIntConstant(m, "RCVALL_IPLEVEL", RCVALL_IPLEVEL);
+#endif
+#ifdef RCVALL_MAX
 	PyModule_AddIntConstant(m, "RCVALL_MAX", RCVALL_MAX);
+#endif
 #endif /* _MSTCPIP_ */
 
 	/* Initialize gethostbyname lock */

Modified: python/trunk/PC/VC6/pythoncore.dsp
==============================================================================
--- python/trunk/PC/VC6/pythoncore.dsp	(original)
+++ python/trunk/PC/VC6/pythoncore.dsp	Fri Mar 28 22:55:29 2008
@@ -133,6 +133,10 @@
 # End Source File
 # Begin Source File
 
+SOURCE=..\..\Modules\_fileio.c
+# End Source File
+# Begin Source File
+
 SOURCE=..\..\Modules\_functoolsmodule.c
 # End Source File
 # Begin Source File
@@ -229,6 +233,14 @@
 # End Source File
 # Begin Source File
 
+SOURCE=..\..\Objects\bytesobject.c
+# End Source File
+# Begin Source File
+
+SOURCE=..\..\Objects\bytes_methods.c
+# End Source File
+# Begin Source File
+
 SOURCE=..\..\Objects\cellobject.c
 # End Source File
 # Begin Source File
@@ -357,6 +369,10 @@
 # End Source File
 # Begin Source File
 
+SOURCE=..\..\Modules\future_builtins.c
+# End Source File
+# Begin Source File
+
 SOURCE=..\..\Modules\gcmodule.c
 # End Source File
 # Begin Source File

Modified: python/trunk/PC/VS7.1/_elementtree.vcproj
==============================================================================
--- python/trunk/PC/VS7.1/_elementtree.vcproj	(original)
+++ python/trunk/PC/VS7.1/_elementtree.vcproj	Fri Mar 28 22:55:29 2008
@@ -33,7 +33,6 @@
 				Name="VCCustomBuildTool"/>
 			<Tool
 				Name="VCLinkerTool"
-				AdditionalDependencies="odbccp32.lib"
 				OutputFile="./_elementtree_d.pyd"
 				LinkIncremental="1"
 				SuppressStartupBanner="TRUE"
@@ -89,7 +88,6 @@
 				Name="VCCustomBuildTool"/>
 			<Tool
 				Name="VCLinkerTool"
-				AdditionalDependencies="odbccp32.lib"
 				OutputFile="./_elementtree.pyd"
 				LinkIncremental="1"
 				SuppressStartupBanner="TRUE"
@@ -150,7 +148,6 @@
 			<Tool
 				Name="VCLinkerTool"
 				AdditionalOptions=" /MACHINE:IA64 /USELINK:MS_SDK"
-				AdditionalDependencies="odbccp32.lib"
 				OutputFile="./_elementtree.pyd"
 				LinkIncremental="1"
 				SuppressStartupBanner="TRUE"
@@ -211,7 +208,6 @@
 			<Tool
 				Name="VCLinkerTool"
 				AdditionalOptions=" /MACHINE:AMD64 /USELINK:MS_SDK"
-				AdditionalDependencies="odbccp32.lib"
 				OutputFile="./_elementtree.pyd"
 				LinkIncremental="1"
 				SuppressStartupBanner="TRUE"

Modified: python/trunk/PC/VS7.1/_tkinter.vcproj
==============================================================================
--- python/trunk/PC/VS7.1/_tkinter.vcproj	(original)
+++ python/trunk/PC/VS7.1/_tkinter.vcproj	Fri Mar 28 22:55:29 2008
@@ -35,7 +35,7 @@
 				Name="VCCustomBuildTool"/>
 			<Tool
 				Name="VCLinkerTool"
-				AdditionalDependencies="..\..\..\tcltk\lib\tk84.lib ..\..\..\tcltk\lib\tcl84.lib odbccp32.lib"
+				AdditionalDependencies="..\..\..\tcltk\lib\tk84.lib ..\..\..\tcltk\lib\tcl84.lib"
 				OutputFile="./_tkinter.pyd"
 				LinkIncremental="1"
 				SuppressStartupBanner="TRUE"
@@ -89,7 +89,7 @@
 				Name="VCCustomBuildTool"/>
 			<Tool
 				Name="VCLinkerTool"
-				AdditionalDependencies="..\..\..\tcltk\lib\tk84.lib ..\..\..\tcltk\lib\tcl84.lib odbccp32.lib"
+				AdditionalDependencies="..\..\..\tcltk\lib\tk84.lib ..\..\..\tcltk\lib\tcl84.lib"
 				OutputFile="./_tkinter_d.pyd"
 				LinkIncremental="1"
 				SuppressStartupBanner="TRUE"
@@ -151,7 +151,7 @@
 			<Tool
 				Name="VCLinkerTool"
 				AdditionalOptions=" /MACHINE:IA64 /USELINK:MS_SDK"
-				AdditionalDependencies="..\..\..\tcltk\lib\tk84.lib ..\..\..\tcltk\lib\tcl84.lib odbccp32.lib"
+				AdditionalDependencies="..\..\..\tcltk\lib\tk84.lib ..\..\..\tcltk\lib\tcl84.lib"
 				OutputFile="./_tkinter.pyd"
 				LinkIncremental="1"
 				SuppressStartupBanner="TRUE"
@@ -213,7 +213,7 @@
 			<Tool
 				Name="VCLinkerTool"
 				AdditionalOptions=" /MACHINE:AMD64 /USELINK:MS_SDK"
-				AdditionalDependencies="..\..\..\tcltk\lib\tk84.lib ..\..\..\tcltk\lib\tcl84.lib odbccp32.lib"
+				AdditionalDependencies="..\..\..\tcltk\lib\tk84.lib ..\..\..\tcltk\lib\tcl84.lib"
 				OutputFile="./_tkinter.pyd"
 				LinkIncremental="1"
 				SuppressStartupBanner="TRUE"

Modified: python/trunk/PC/VS7.1/make_versioninfo.vcproj
==============================================================================
--- python/trunk/PC/VS7.1/make_versioninfo.vcproj	(original)
+++ python/trunk/PC/VS7.1/make_versioninfo.vcproj	Fri Mar 28 22:55:29 2008
@@ -40,7 +40,6 @@
 				Outputs="..\..\PC\pythonnt_rc.h"/>
 			<Tool
 				Name="VCLinkerTool"
-				AdditionalDependencies="odbccp32.lib"
 				OutputFile=".\./make_versioninfo.exe"
 				LinkIncremental="1"
 				SuppressStartupBanner="TRUE"
@@ -98,7 +97,6 @@
 				Outputs="..\..\PC\pythonnt_rc_d.h"/>
 			<Tool
 				Name="VCLinkerTool"
-				AdditionalDependencies="odbccp32.lib"
 				OutputFile="./make_versioninfo_d.exe"
 				LinkIncremental="1"
 				SuppressStartupBanner="TRUE"

Modified: python/trunk/PC/VS7.1/pyexpat.vcproj
==============================================================================
--- python/trunk/PC/VS7.1/pyexpat.vcproj	(original)
+++ python/trunk/PC/VS7.1/pyexpat.vcproj	Fri Mar 28 22:55:29 2008
@@ -32,7 +32,6 @@
 				Name="VCCustomBuildTool"/>
 			<Tool
 				Name="VCLinkerTool"
-				AdditionalDependencies="odbccp32.lib"
 				OutputFile="./pyexpat_d.pyd"
 				LinkIncremental="1"
 				SuppressStartupBanner="TRUE"
@@ -88,7 +87,6 @@
 				Name="VCCustomBuildTool"/>
 			<Tool
 				Name="VCLinkerTool"
-				AdditionalDependencies="odbccp32.lib"
 				OutputFile="./pyexpat.pyd"
 				LinkIncremental="1"
 				SuppressStartupBanner="TRUE"
@@ -149,7 +147,6 @@
 			<Tool
 				Name="VCLinkerTool"
 				AdditionalOptions=" /MACHINE:IA64 /USELINK:MS_SDK"
-				AdditionalDependencies="odbccp32.lib"
 				OutputFile="./pyexpat.pyd"
 				LinkIncremental="1"
 				SuppressStartupBanner="TRUE"
@@ -210,7 +207,6 @@
 			<Tool
 				Name="VCLinkerTool"
 				AdditionalOptions=" /MACHINE:AMD64 /USELINK:MS_SDK"
-				AdditionalDependencies="odbccp32.lib"
 				OutputFile="./pyexpat.pyd"
 				LinkIncremental="1"
 				SuppressStartupBanner="TRUE"

Modified: python/trunk/PC/VS7.1/python.vcproj
==============================================================================
--- python/trunk/PC/VS7.1/python.vcproj	(original)
+++ python/trunk/PC/VS7.1/python.vcproj	Fri Mar 28 22:55:29 2008
@@ -36,7 +36,6 @@
 				Name="VCCustomBuildTool"/>
 			<Tool
 				Name="VCLinkerTool"
-				AdditionalDependencies="odbccp32.lib"
 				OutputFile=".\./python.exe"
 				LinkIncremental="1"
 				SuppressStartupBanner="TRUE"
@@ -93,7 +92,6 @@
 				Name="VCCustomBuildTool"/>
 			<Tool
 				Name="VCLinkerTool"
-				AdditionalDependencies="odbccp32.lib"
 				OutputFile="./python_d.exe"
 				LinkIncremental="1"
 				SuppressStartupBanner="TRUE"
@@ -158,7 +156,6 @@
 			<Tool
 				Name="VCLinkerTool"
 				AdditionalOptions=" /MACHINE:IA64 /USELINK:MS_SDK /VSEXTCOMP_VERBOSE"
-				AdditionalDependencies="odbccp32.lib"
 				OutputFile=".\./python.exe"
 				LinkIncremental="1"
 				SuppressStartupBanner="TRUE"
@@ -222,7 +219,6 @@
 			<Tool
 				Name="VCLinkerTool"
 				AdditionalOptions=" /MACHINE:AMD64 /USELINK:MS_SDK"
-				AdditionalDependencies="odbccp32.lib"
 				OutputFile=".\./python.exe"
 				LinkIncremental="1"
 				SuppressStartupBanner="TRUE"

Modified: python/trunk/PC/VS7.1/pythoncore.vcproj
==============================================================================
--- python/trunk/PC/VS7.1/pythoncore.vcproj	(original)
+++ python/trunk/PC/VS7.1/pythoncore.vcproj	Fri Mar 28 22:55:29 2008
@@ -368,6 +368,9 @@
 			RelativePath="..\..\Modules\_csv.c">
 		</File>
 		<File
+			RelativePath="..\..\Modules\_fileio.c">
+		</File>
+		<File
 			RelativePath="..\..\Modules\_functoolsmodule.c">
 		</File>
 		<File
@@ -437,6 +440,12 @@
 			RelativePath="..\..\Objects\bufferobject.c">
 		</File>
 		<File
+			RelativePath="..\..\Objects\bytesobject.c">
+		</File>
+		<File
+			RelativePath="..\..\Objects\bytes_methods.c">
+		</File>
+		<File
 			RelativePath="..\..\Objects\cellobject.c">
 		</File>
 		<File
@@ -533,6 +542,9 @@
 			RelativePath="..\..\Python\future.c">
 		</File>
 		<File
+			RelativePath="..\..\Modules\future_builtins.c">
+		</File>
+		<File
 			RelativePath="..\..\Modules\gcmodule.c">
 		</File>
 		<File
@@ -707,8 +719,7 @@
 			RelativePath="..\..\Python\pystate.c">
 		</File>
 		<File
-			RelativePath="..\..\Python\pystrcmp.c"
-			>
+			RelativePath="..\..\Python\pystrcmp.c">
 		</File>
 		<File
 			RelativePath="..\..\Python\pystrtod.c">

Modified: python/trunk/PC/VS8.0/_elementtree.vcproj
==============================================================================
--- python/trunk/PC/VS8.0/_elementtree.vcproj	(original)
+++ python/trunk/PC/VS8.0/_elementtree.vcproj	Fri Mar 28 22:55:29 2008
@@ -56,7 +56,6 @@
 			/>
 			<Tool
 				Name="VCLinkerTool"
-				AdditionalDependencies="odbccp32.lib"
 				BaseAddress="0x1D100000"
 			/>
 			<Tool
@@ -119,7 +118,6 @@
 			/>
 			<Tool
 				Name="VCLinkerTool"
-				AdditionalDependencies="odbccp32.lib"
 				BaseAddress="0x1D100000"
 			/>
 			<Tool
@@ -182,7 +180,6 @@
 			/>
 			<Tool
 				Name="VCLinkerTool"
-				AdditionalDependencies="odbccp32.lib"
 				BaseAddress="0x1D100000"
 			/>
 			<Tool
@@ -246,7 +243,6 @@
 			/>
 			<Tool
 				Name="VCLinkerTool"
-				AdditionalDependencies="odbccp32.lib"
 				BaseAddress="0x1D100000"
 			/>
 			<Tool
@@ -309,7 +305,6 @@
 			/>
 			<Tool
 				Name="VCLinkerTool"
-				AdditionalDependencies="odbccp32.lib"
 				BaseAddress="0x1D100000"
 			/>
 			<Tool
@@ -373,7 +368,6 @@
 			/>
 			<Tool
 				Name="VCLinkerTool"
-				AdditionalDependencies="odbccp32.lib"
 				BaseAddress="0x1D100000"
 				TargetMachine="17"
 			/>
@@ -437,7 +431,6 @@
 			/>
 			<Tool
 				Name="VCLinkerTool"
-				AdditionalDependencies="odbccp32.lib"
 				BaseAddress="0x1D100000"
 			/>
 			<Tool
@@ -501,7 +494,6 @@
 			/>
 			<Tool
 				Name="VCLinkerTool"
-				AdditionalDependencies="odbccp32.lib"
 				BaseAddress="0x1D100000"
 				TargetMachine="17"
 			/>

Modified: python/trunk/PC/VS8.0/make_versioninfo.vcproj
==============================================================================
--- python/trunk/PC/VS8.0/make_versioninfo.vcproj	(original)
+++ python/trunk/PC/VS8.0/make_versioninfo.vcproj	Fri Mar 28 22:55:29 2008
@@ -67,7 +67,6 @@
 			/>
 			<Tool
 				Name="VCLinkerTool"
-				AdditionalDependencies="odbccp32.lib"
 				OutputFile="$(SolutionDir)make_versioninfo.exe"
 				ProgramDatabaseFile="$(TargetDir)$(TargetName).pdb"
 				SubSystem="1"
@@ -211,7 +210,6 @@
 			/>
 			<Tool
 				Name="VCLinkerTool"
-				AdditionalDependencies="odbccp32.lib"
 				OutputFile="$(SolutionDir)make_versioninfo_d.exe"
 				ProgramDatabaseFile="$(TargetDir)$(TargetName).pdb"
 				SubSystem="1"

Modified: python/trunk/PC/VS8.0/python.vcproj
==============================================================================
--- python/trunk/PC/VS8.0/python.vcproj	(original)
+++ python/trunk/PC/VS8.0/python.vcproj	Fri Mar 28 22:55:29 2008
@@ -62,7 +62,6 @@
 			/>
 			<Tool
 				Name="VCLinkerTool"
-				AdditionalDependencies="odbccp32.lib"
 				OutputFile="$(OutDir)\python.exe"
 				SubSystem="1"
 				StackReserveSize="2000000"
@@ -136,7 +135,6 @@
 			/>
 			<Tool
 				Name="VCLinkerTool"
-				AdditionalDependencies="odbccp32.lib"
 				OutputFile="$(OutDir)\python.exe"
 				SubSystem="1"
 				StackReserveSize="2000000"
@@ -211,7 +209,6 @@
 			/>
 			<Tool
 				Name="VCLinkerTool"
-				AdditionalDependencies="odbccp32.lib"
 				OutputFile="$(OutDir)\python_d.exe"
 				SubSystem="1"
 				StackReserveSize="2000000"
@@ -287,7 +284,6 @@
 			/>
 			<Tool
 				Name="VCLinkerTool"
-				AdditionalDependencies="odbccp32.lib"
 				OutputFile="$(OutDir)\python_d.exe"
 				SubSystem="1"
 				StackReserveSize="2000000"
@@ -360,7 +356,6 @@
 			/>
 			<Tool
 				Name="VCLinkerTool"
-				AdditionalDependencies="odbccp32.lib"
 				OutputFile="$(OutDir)\python.exe"
 				SubSystem="1"
 				StackReserveSize="2000000"
@@ -435,7 +430,6 @@
 			/>
 			<Tool
 				Name="VCLinkerTool"
-				AdditionalDependencies="odbccp32.lib"
 				OutputFile="$(OutDir)\python.exe"
 				SubSystem="1"
 				StackReserveSize="2000000"
@@ -510,7 +504,6 @@
 			/>
 			<Tool
 				Name="VCLinkerTool"
-				AdditionalDependencies="odbccp32.lib"
 				OutputFile="$(OutDir)\python.exe"
 				SubSystem="1"
 				StackReserveSize="2000000"
@@ -585,7 +578,6 @@
 			/>
 			<Tool
 				Name="VCLinkerTool"
-				AdditionalDependencies="odbccp32.lib"
 				OutputFile="$(OutDir)\python.exe"
 				SubSystem="1"
 				StackReserveSize="2000000"

Modified: python/trunk/PC/VS8.0/pythoncore.vcproj
==============================================================================
--- python/trunk/PC/VS8.0/pythoncore.vcproj	(original)
+++ python/trunk/PC/VS8.0/pythoncore.vcproj	Fri Mar 28 22:55:29 2008
@@ -655,6 +655,14 @@
 				>
 			</File>
 			<File
+				RelativePath="..\..\Include\bytesobject.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\Include\bytes_methods.h"
+				>
+			</File>
+			<File
 				RelativePath="..\..\Include\cellobject.h"
 				>
 			</File>
@@ -979,6 +987,10 @@
 				>
 			</File>
 			<File
+				RelativePath="..\..\Modules\_fileio.c"
+				>
+			</File>
+			<File
 				RelativePath="..\..\Modules\_functoolsmodule.c"
 				>
 			</File>
@@ -1051,6 +1063,10 @@
 				>
 			</File>
 			<File
+				RelativePath="..\..\Modules\future_builtins.c"
+				>
+			</File>
+			<File
 				RelativePath="..\..\Modules\gcmodule.c"
 				>
 			</File>
@@ -1343,6 +1359,14 @@
 				>
 			</File>
 			<File
+				RelativePath="..\..\Objects\bytesobject.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\Objects\bytes_methods.c"
+				>
+			</File>
+			<File
 				RelativePath="..\..\Objects\cellobject.c"
 				>
 			</File>
@@ -1627,11 +1651,11 @@
 				>
 			</File>
 			<File
-				RelativePath="..\Python\formatter_string.c"
+				RelativePath="..\..\Python\formatter_string.c"
 				>
 			</File>
 			<File
-				RelativePath="..\Python\formatter_unicode.c"
+				RelativePath="..\..\Python\formatter_unicode.c"
 				>
 			</File>
 			<File

Modified: python/trunk/PC/pyconfig.h
==============================================================================
--- python/trunk/PC/pyconfig.h	(original)
+++ python/trunk/PC/pyconfig.h	Fri Mar 28 22:55:29 2008
@@ -162,9 +162,15 @@
 #define Py_NTDDI NTDDI_WINXP
 #else
 /* Python 2.6+ requires Windows 2000 or greater */
+#ifdef _WIN32_WINNT_WIN2K
 #define Py_WINVER _WIN32_WINNT_WIN2K
+#else
+#define Py_WINVER 0x0500
+#endif
+#ifdef NTDDI_WIN2KSP4
 #define Py_NTDDI NTDDI_WIN2KSP4
 #endif
+#endif
 
 /* We only set these values when building Python - we don't want to force
    these values on extensions, as that will affect the prototypes and


More information about the Python-checkins mailing list