From: Amaury Forgeot d'Arc Date: Fri, 28 Mar 2008 21:55:29 +0000 (+0000) Subject: Repair compilation for Visual Studio 2005. X-Git-Tag: v2.6a2~47 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=94eba715add289a023b26132289ec00e5b7669c9;p=thirdparty%2FPython%2Fcpython.git 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) --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 13354d022ca6..e9568315d4f4 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 0f4f9d2a52fb..7c929ef7d77d 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 63301d7f1c3c..ede703e0b80a 100644 --- a/PC/VS7.1/_elementtree.vcproj +++ b/PC/VS7.1/_elementtree.vcproj @@ -33,7 +33,6 @@ Name="VCCustomBuildTool"/> + + @@ -436,6 +439,12 @@ + + + + @@ -532,6 +541,9 @@ + + @@ -707,8 +719,7 @@ RelativePath="..\..\Python\pystate.c"> + RelativePath="..\..\Python\pystrcmp.c"> diff --git a/PC/VS8.0/_elementtree.vcproj b/PC/VS8.0/_elementtree.vcproj index 32fac0c75476..457da72f04d2 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 b097162f790f..9dbf10d95a3e 100644 --- a/PC/VS8.0/make_versioninfo.vcproj +++ b/PC/VS8.0/make_versioninfo.vcproj @@ -67,7 +67,6 @@ /> + + + + @@ -978,6 +986,10 @@ RelativePath="..\..\Modules\_csv.c" > + + @@ -1050,6 +1062,10 @@ RelativePath="..\..\Modules\errnomodule.c" > + + @@ -1342,6 +1358,14 @@ RelativePath="..\..\Objects\bufferobject.c" > + + + + @@ -1627,11 +1651,11 @@ >