From: Christian Heimes Date: Fri, 30 Nov 2007 19:18:08 +0000 (+0000) Subject: Removed or replaced some more deprecated preprocessor macros. X-Git-Tag: v2.6a1~980 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3971f6b8fb22e67d7f4bec2df25aae285919ceba;p=python Removed or replaced some more deprecated preprocessor macros. Moved the _DEBUG and NDEBUG macros to two new property files. Fixed #1527 Problem with static libs on Windows Updated README.txt --- diff --git a/PC/dl_nt.c b/PC/dl_nt.c index a87b523818..e143c780ac 100644 --- a/PC/dl_nt.c +++ b/PC/dl_nt.c @@ -11,6 +11,7 @@ forgotten) from the programmer. #include "Python.h" #include "windows.h" +#ifdef Py_ENABLE_SHARED char dllVersionBuffer[16] = ""; // a private buffer // Python Globals @@ -35,3 +36,5 @@ BOOL WINAPI DllMain (HANDLE hInst, } return TRUE; } + +#endif /* Py_ENABLE_SHARED */ diff --git a/PCbuild9/debug.vsprops b/PCbuild9/debug.vsprops new file mode 100644 index 0000000000..59acd90974 --- /dev/null +++ b/PCbuild9/debug.vsprops @@ -0,0 +1,11 @@ + + + + \ No newline at end of file diff --git a/PCbuild9/make_buildinfo.vcproj b/PCbuild9/make_buildinfo.vcproj index 8ba5c49a9e..c42229c1a0 100644 --- a/PCbuild9/make_buildinfo.vcproj +++ b/PCbuild9/make_buildinfo.vcproj @@ -22,7 +22,7 @@ @@ -44,7 +44,7 @@ Name="VCCLCompilerTool" AdditionalOptions="/Zm200 " AdditionalIncludeDirectories="..\Python;..\Modules\zlib" - PreprocessorDefinitions="NDEBUG;USE_DL_EXPORT;_USRDLL" + PreprocessorDefinitions="_USRDLL;Py_BUILD_CORE;Py_ENABLE_SHARED" RuntimeLibrary="2" /> @@ -119,7 +119,7 @@ Name="VCCLCompilerTool" AdditionalOptions="/Zm200 " AdditionalIncludeDirectories="..\Python;..\Modules\zlib" - PreprocessorDefinitions="NDEBUG;USE_DL_EXPORT;_USRDLL" + PreprocessorDefinitions="_USRDLL;Py_BUILD_CORE;Py_ENABLE_SHARED" RuntimeLibrary="2" /> @@ -275,7 +275,7 @@ InlineFunctionExpansion="0" EnableIntrinsicFunctions="false" AdditionalIncludeDirectories="..\Python;..\Modules\zlib" - PreprocessorDefinitions="_DEBUG;USE_DL_EXPORT;_USRDLL" + PreprocessorDefinitions="_USRDLL;Py_BUILD_CORE;Py_ENABLE_SHARED" RuntimeLibrary="3" /> @@ -349,7 +349,7 @@ Name="VCCLCompilerTool" AdditionalOptions="/Zm200 " AdditionalIncludeDirectories="..\Python;..\Modules\zlib" - PreprocessorDefinitions="NDEBUG;USE_DL_EXPORT;_USRDLL" + PreprocessorDefinitions="_USRDLL;Py_BUILD_CORE;Py_ENABLE_SHARED" RuntimeLibrary="2" /> @@ -424,7 +424,7 @@ Name="VCCLCompilerTool" AdditionalOptions="/Zm200 " AdditionalIncludeDirectories="..\Python;..\Modules\zlib" - PreprocessorDefinitions="NDEBUG;USE_DL_EXPORT;_USRDLL" + PreprocessorDefinitions="_USRDLL;Py_BUILD_CORE;Py_ENABLE_SHARED" RuntimeLibrary="2" /> @@ -499,7 +499,7 @@ Name="VCCLCompilerTool" AdditionalOptions="/Zm200 " AdditionalIncludeDirectories="..\Python;..\Modules\zlib" - PreprocessorDefinitions="NDEBUG;USE_DL_EXPORT;_USRDLL" + PreprocessorDefinitions="_USRDLL;Py_BUILD_CORE;Py_ENABLE_SHARED" RuntimeLibrary="2" /> @@ -574,7 +574,7 @@ Name="VCCLCompilerTool" AdditionalOptions="/Zm200 " AdditionalIncludeDirectories="..\Python;..\Modules\zlib" - PreprocessorDefinitions="NDEBUG;USE_DL_EXPORT;_USRDLL" + PreprocessorDefinitions="_USRDLL;Py_BUILD_CORE;Py_ENABLE_SHARED" RuntimeLibrary="2" /> @@ -92,7 +92,7 @@ @@ -117,7 +117,7 @@ Optimization="0" EnableIntrinsicFunctions="false" AdditionalIncludeDirectories="" - PreprocessorDefinitions="_DEBUG;_WINDOWS" + PreprocessorDefinitions="_WINDOWS" RuntimeLibrary="3" CompileAs="0" /> @@ -163,7 +163,7 @@ @@ -185,7 +185,7 @@ @@ -257,7 +257,7 @@ @@ -327,7 +327,7 @@ @@ -400,7 +400,7 @@ @@ -472,7 +472,7 @@ @@ -545,7 +545,7 @@ + + + diff --git a/PCbuild9/w9xpopen.vcproj b/PCbuild9/w9xpopen.vcproj index d00cef4def..2397366b79 100644 --- a/PCbuild9/w9xpopen.vcproj +++ b/PCbuild9/w9xpopen.vcproj @@ -21,7 +21,7 @@ @@ -86,7 +85,7 @@ @@ -152,7 +150,7 @@