From 9d865c96506da85fd4b5622ad26491918c7c529e Mon Sep 17 00:00:00 2001 From: Amaury Forgeot d'Arc Date: Thu, 12 Jun 2008 22:27:27 +0000 Subject: On Windows, repair compilation of builtin modules _stringio and _pickle. (Alexandre, the MSVC build files are in PCBuild. the PC/Vxxx directories try to support older compilers) --- PC/VC6/pythoncore.dsp | 8 ++++++++ PC/VS7.1/pythoncore.vcproj | 6 ++++++ PC/VS8.0/pythoncore.vcproj | 8 ++++++++ PC/config.c | 3 +++ PCbuild/pythoncore.vcproj | 8 ++++++++ 5 files changed, 33 insertions(+) diff --git a/PC/VC6/pythoncore.dsp b/PC/VC6/pythoncore.dsp index 89ab515..fde4be3 100644 --- a/PC/VC6/pythoncore.dsp +++ b/PC/VC6/pythoncore.dsp @@ -161,6 +161,10 @@ SOURCE=..\..\Modules\_lsprof.c # End Source File # Begin Source File +SOURCE=..\..\Modules\_pickle.c +# End Source File +# Begin Source File + SOURCE=..\..\Modules\_randommodule.c # End Source File # Begin Source File @@ -169,6 +173,10 @@ SOURCE=..\..\Modules\_sre.c # End Source File # Begin Source File +SOURCE=..\..\Modules\_stringio.c +# End Source File +# Begin Source File + SOURCE=..\..\Modules\_struct.c # End Source File # Begin Source File diff --git a/PC/VS7.1/pythoncore.vcproj b/PC/VS7.1/pythoncore.vcproj index f02c2a2..3094755 100644 --- a/PC/VS7.1/pythoncore.vcproj +++ b/PC/VS7.1/pythoncore.vcproj @@ -389,12 +389,18 @@ RelativePath="..\..\Modules\_lsprof.c"> + + + + + + @@ -1019,6 +1023,10 @@ > + + diff --git a/PC/config.c b/PC/config.c index a7f2ede..f2bdfdb 100644 --- a/PC/config.c +++ b/PC/config.c @@ -60,6 +60,8 @@ extern PyObject* PyInit__lsprof(void); extern PyObject* PyInit__ast(void); extern PyObject* PyInit__fileio(void); extern PyObject* PyInit__bytesio(void); +extern PyObject* PyInit__stringio(void); +extern PyObject* PyInit__pickle(void); extern PyObject* PyInit_atexit(void); extern PyObject* _PyWarnings_Init(void); @@ -151,6 +153,7 @@ struct _inittab _PyImport_Inittab[] = { {"_fileio", PyInit__fileio}, {"_bytesio", PyInit__bytesio}, {"_stringio", PyInit__stringio}, + {"_pickle", PyInit__pickle}, {"atexit", PyInit_atexit}, /* Sentinel */ diff --git a/PCbuild/pythoncore.vcproj b/PCbuild/pythoncore.vcproj index ca33a97..33bea7e 100644 --- a/PCbuild/pythoncore.vcproj +++ b/PCbuild/pythoncore.vcproj @@ -1015,6 +1015,10 @@ > + + @@ -1023,6 +1027,10 @@ > + + -- cgit v0.12