From 94eba715add289a023b26132289ec00e5b7669c9 Mon Sep 17 00:00:00 2001 From: Amaury Forgeot d'Arc Date: Fri, 28 Mar 2008 21:55:29 +0000 Subject: 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) --- Modules/socketmodule.c | 4 ++++ PC/VC6/pythoncore.dsp | 16 ++++++++++++++++ PC/VS7.1/_elementtree.vcproj | 4 ---- PC/VS7.1/_tkinter.vcproj | 8 ++++---- PC/VS7.1/make_versioninfo.vcproj | 2 -- PC/VS7.1/pyexpat.vcproj | 4 ---- PC/VS7.1/python.vcproj | 4 ---- PC/VS7.1/pythoncore.vcproj | 15 +++++++++++++-- PC/VS8.0/_elementtree.vcproj | 8 -------- PC/VS8.0/make_versioninfo.vcproj | 2 -- PC/VS8.0/python.vcproj | 8 -------- PC/VS8.0/pythoncore.vcproj | 28 ++++++++++++++++++++++++++-- PC/pyconfig.h | 6 ++++++ 13 files changed, 69 insertions(+), 40 deletions(-) diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 13354d0..e956831 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -5230,8 +5230,12 @@ init_socket(void) 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 */ diff --git a/PC/VC6/pythoncore.dsp b/PC/VC6/pythoncore.dsp index 0f4f9d2..7c929ef 100644 --- a/PC/VC6/pythoncore.dsp +++ b/PC/VC6/pythoncore.dsp @@ -133,6 +133,10 @@ SOURCE=..\..\Modules\_csv.c # 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 @@ SOURCE=..\..\Objects\bufferobject.c # 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 @@ SOURCE=..\..\Python\future.c # 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 diff --git a/PC/VS7.1/_elementtree.vcproj b/PC/VS7.1/_elementtree.vcproj index 63301d7..ede703e 100644 --- a/PC/VS7.1/_elementtree.vcproj +++ b/PC/VS7.1/_elementtree.vcproj @@ -33,7 +33,6 @@ Name="VCCustomBuildTool"/> + + + + + + + + + RelativePath="..\..\Python\pystrcmp.c"> diff --git a/PC/VS8.0/_elementtree.vcproj b/PC/VS8.0/_elementtree.vcproj index 32fac0c..457da72 100644 --- a/PC/VS8.0/_elementtree.vcproj +++ b/PC/VS8.0/_elementtree.vcproj @@ -56,7 +56,6 @@ /> @@ -437,7 +431,6 @@ /> diff --git a/PC/VS8.0/make_versioninfo.vcproj b/PC/VS8.0/make_versioninfo.vcproj index b097162..9dbf10d 100644 --- a/PC/VS8.0/make_versioninfo.vcproj +++ b/PC/VS8.0/make_versioninfo.vcproj @@ -67,7 +67,6 @@ /> + + + + @@ -979,6 +987,10 @@ > + + @@ -1051,6 +1063,10 @@ > + + @@ -1343,6 +1359,14 @@ > + + + + @@ -1627,11 +1651,11 @@ >