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)
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 */
# End Source File\r
# Begin Source File\r
\r
+SOURCE=..\..\Modules\_fileio.c\r
+# End Source File\r
+# Begin Source File\r
+\r
SOURCE=..\..\Modules\_functoolsmodule.c\r
# End Source File\r
# Begin Source File\r
# End Source File\r
# Begin Source File\r
\r
+SOURCE=..\..\Objects\bytesobject.c\r
+# End Source File\r
+# Begin Source File\r
+\r
+SOURCE=..\..\Objects\bytes_methods.c\r
+# End Source File\r
+# Begin Source File\r
+\r
SOURCE=..\..\Objects\cellobject.c\r
# End Source File\r
# Begin Source File\r
# End Source File\r
# Begin Source File\r
\r
+SOURCE=..\..\Modules\future_builtins.c\r
+# End Source File\r
+# Begin Source File\r
+\r
SOURCE=..\..\Modules\gcmodule.c\r
# End Source File\r
# Begin Source File\r
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
- AdditionalDependencies="odbccp32.lib"
OutputFile="./_elementtree_d.pyd"
LinkIncremental="1"
SuppressStartupBanner="TRUE"
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
- AdditionalDependencies="odbccp32.lib"
OutputFile="./_elementtree.pyd"
LinkIncremental="1"
SuppressStartupBanner="TRUE"
<Tool
Name="VCLinkerTool"
AdditionalOptions=" /MACHINE:IA64 /USELINK:MS_SDK"
- AdditionalDependencies="odbccp32.lib"
OutputFile="./_elementtree.pyd"
LinkIncremental="1"
SuppressStartupBanner="TRUE"
<Tool
Name="VCLinkerTool"
AdditionalOptions=" /MACHINE:AMD64 /USELINK:MS_SDK"
- AdditionalDependencies="odbccp32.lib"
OutputFile="./_elementtree.pyd"
LinkIncremental="1"
SuppressStartupBanner="TRUE"
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"
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"
<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"
<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"
Outputs="..\..\PC\pythonnt_rc.h"/>
<Tool
Name="VCLinkerTool"
- AdditionalDependencies="odbccp32.lib"
OutputFile=".\./make_versioninfo.exe"
LinkIncremental="1"
SuppressStartupBanner="TRUE"
Outputs="..\..\PC\pythonnt_rc_d.h"/>
<Tool
Name="VCLinkerTool"
- AdditionalDependencies="odbccp32.lib"
OutputFile="./make_versioninfo_d.exe"
LinkIncremental="1"
SuppressStartupBanner="TRUE"
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
- AdditionalDependencies="odbccp32.lib"
OutputFile="./pyexpat_d.pyd"
LinkIncremental="1"
SuppressStartupBanner="TRUE"
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
- AdditionalDependencies="odbccp32.lib"
OutputFile="./pyexpat.pyd"
LinkIncremental="1"
SuppressStartupBanner="TRUE"
<Tool
Name="VCLinkerTool"
AdditionalOptions=" /MACHINE:IA64 /USELINK:MS_SDK"
- AdditionalDependencies="odbccp32.lib"
OutputFile="./pyexpat.pyd"
LinkIncremental="1"
SuppressStartupBanner="TRUE"
<Tool
Name="VCLinkerTool"
AdditionalOptions=" /MACHINE:AMD64 /USELINK:MS_SDK"
- AdditionalDependencies="odbccp32.lib"
OutputFile="./pyexpat.pyd"
LinkIncremental="1"
SuppressStartupBanner="TRUE"
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
- AdditionalDependencies="odbccp32.lib"
OutputFile=".\./python.exe"
LinkIncremental="1"
SuppressStartupBanner="TRUE"
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
- AdditionalDependencies="odbccp32.lib"
OutputFile="./python_d.exe"
LinkIncremental="1"
SuppressStartupBanner="TRUE"
<Tool
Name="VCLinkerTool"
AdditionalOptions=" /MACHINE:IA64 /USELINK:MS_SDK /VSEXTCOMP_VERBOSE"
- AdditionalDependencies="odbccp32.lib"
OutputFile=".\./python.exe"
LinkIncremental="1"
SuppressStartupBanner="TRUE"
<Tool
Name="VCLinkerTool"
AdditionalOptions=" /MACHINE:AMD64 /USELINK:MS_SDK"
- AdditionalDependencies="odbccp32.lib"
OutputFile=".\./python.exe"
LinkIncremental="1"
SuppressStartupBanner="TRUE"
<File
RelativePath="..\..\Modules\_csv.c">
</File>
+ <File
+ RelativePath="..\..\Modules\_fileio.c">
+ </File>
<File
RelativePath="..\..\Modules\_functoolsmodule.c">
</File>
<File
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
RelativePath="..\..\Python\future.c">
</File>
+ <File
+ RelativePath="..\..\Modules\future_builtins.c">
+ </File>
<File
RelativePath="..\..\Modules\gcmodule.c">
</File>
RelativePath="..\..\Python\pystate.c">
</File>
<File
- RelativePath="..\..\Python\pystrcmp.c"
- >
+ RelativePath="..\..\Python\pystrcmp.c">
</File>
<File
RelativePath="..\..\Python\pystrtod.c">
/>\r
<Tool\r
Name="VCLinkerTool"\r
- AdditionalDependencies="odbccp32.lib"\r
BaseAddress="0x1D100000"\r
/>\r
<Tool\r
/>\r
<Tool\r
Name="VCLinkerTool"\r
- AdditionalDependencies="odbccp32.lib"\r
BaseAddress="0x1D100000"\r
/>\r
<Tool\r
/>\r
<Tool\r
Name="VCLinkerTool"\r
- AdditionalDependencies="odbccp32.lib"\r
BaseAddress="0x1D100000"\r
/>\r
<Tool\r
/>\r
<Tool\r
Name="VCLinkerTool"\r
- AdditionalDependencies="odbccp32.lib"\r
BaseAddress="0x1D100000"\r
/>\r
<Tool\r
/>\r
<Tool\r
Name="VCLinkerTool"\r
- AdditionalDependencies="odbccp32.lib"\r
BaseAddress="0x1D100000"\r
/>\r
<Tool\r
/>\r
<Tool\r
Name="VCLinkerTool"\r
- AdditionalDependencies="odbccp32.lib"\r
BaseAddress="0x1D100000"\r
TargetMachine="17"\r
/>\r
/>\r
<Tool\r
Name="VCLinkerTool"\r
- AdditionalDependencies="odbccp32.lib"\r
BaseAddress="0x1D100000"\r
/>\r
<Tool\r
/>\r
<Tool\r
Name="VCLinkerTool"\r
- AdditionalDependencies="odbccp32.lib"\r
BaseAddress="0x1D100000"\r
TargetMachine="17"\r
/>\r
/>\r
<Tool\r
Name="VCLinkerTool"\r
- AdditionalDependencies="odbccp32.lib"\r
OutputFile="$(SolutionDir)make_versioninfo.exe"\r
ProgramDatabaseFile="$(TargetDir)$(TargetName).pdb"\r
SubSystem="1"\r
/>\r
<Tool\r
Name="VCLinkerTool"\r
- AdditionalDependencies="odbccp32.lib"\r
OutputFile="$(SolutionDir)make_versioninfo_d.exe"\r
ProgramDatabaseFile="$(TargetDir)$(TargetName).pdb"\r
SubSystem="1"\r
/>\r
<Tool\r
Name="VCLinkerTool"\r
- AdditionalDependencies="odbccp32.lib"\r
OutputFile="$(OutDir)\python.exe"\r
SubSystem="1"\r
StackReserveSize="2000000"\r
/>\r
<Tool\r
Name="VCLinkerTool"\r
- AdditionalDependencies="odbccp32.lib"\r
OutputFile="$(OutDir)\python.exe"\r
SubSystem="1"\r
StackReserveSize="2000000"\r
/>\r
<Tool\r
Name="VCLinkerTool"\r
- AdditionalDependencies="odbccp32.lib"\r
OutputFile="$(OutDir)\python_d.exe"\r
SubSystem="1"\r
StackReserveSize="2000000"\r
/>\r
<Tool\r
Name="VCLinkerTool"\r
- AdditionalDependencies="odbccp32.lib"\r
OutputFile="$(OutDir)\python_d.exe"\r
SubSystem="1"\r
StackReserveSize="2000000"\r
/>\r
<Tool\r
Name="VCLinkerTool"\r
- AdditionalDependencies="odbccp32.lib"\r
OutputFile="$(OutDir)\python.exe"\r
SubSystem="1"\r
StackReserveSize="2000000"\r
/>\r
<Tool\r
Name="VCLinkerTool"\r
- AdditionalDependencies="odbccp32.lib"\r
OutputFile="$(OutDir)\python.exe"\r
SubSystem="1"\r
StackReserveSize="2000000"\r
/>\r
<Tool\r
Name="VCLinkerTool"\r
- AdditionalDependencies="odbccp32.lib"\r
OutputFile="$(OutDir)\python.exe"\r
SubSystem="1"\r
StackReserveSize="2000000"\r
/>\r
<Tool\r
Name="VCLinkerTool"\r
- AdditionalDependencies="odbccp32.lib"\r
OutputFile="$(OutDir)\python.exe"\r
SubSystem="1"\r
StackReserveSize="2000000"\r
RelativePath="..\..\Include\bufferobject.h"\r
>\r
</File>\r
+ <File\r
+ RelativePath="..\..\Include\bytesobject.h"\r
+ >\r
+ </File>\r
+ <File\r
+ RelativePath="..\..\Include\bytes_methods.h"\r
+ >\r
+ </File>\r
<File\r
RelativePath="..\..\Include\cellobject.h"\r
>\r
RelativePath="..\..\Modules\_csv.c"\r
>\r
</File>\r
+ <File\r
+ RelativePath="..\..\Modules\_fileio.c"\r
+ >\r
+ </File>\r
<File\r
RelativePath="..\..\Modules\_functoolsmodule.c"\r
>\r
RelativePath="..\..\Modules\errnomodule.c"\r
>\r
</File>\r
+ <File\r
+ RelativePath="..\..\Modules\future_builtins.c"\r
+ >\r
+ </File>\r
<File\r
RelativePath="..\..\Modules\gcmodule.c"\r
>\r
RelativePath="..\..\Objects\bufferobject.c"\r
>\r
</File>\r
+ <File\r
+ RelativePath="..\..\Objects\bytesobject.c"\r
+ >\r
+ </File>\r
+ <File\r
+ RelativePath="..\..\Objects\bytes_methods.c"\r
+ >\r
+ </File>\r
<File\r
RelativePath="..\..\Objects\cellobject.c"\r
>\r
>\r
</File>\r
<File\r
- RelativePath="..\Python\formatter_string.c"\r
+ RelativePath="..\..\Python\formatter_string.c"\r
>\r
</File>\r
<File\r
- RelativePath="..\Python\formatter_unicode.c"\r
+ RelativePath="..\..\Python\formatter_unicode.c"\r
>\r
</File>\r
<File\r
#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