From: Victor Stinner Date: Thu, 6 Dec 2018 10:56:00 +0000 (+0100) Subject: bpo-35359: Add _CRT_SECURE_NO_WARNINGS to pythoncore project (GH-10819) X-Git-Tag: v2.7.16rc1~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49cedc51a68b4cd2525c14ab02bd1a483d8be389;p=thirdparty%2FPython%2Fcpython.git bpo-35359: Add _CRT_SECURE_NO_WARNINGS to pythoncore project (GH-10819) Define _CRT_SECURE_NO_WARNINGS in the Visual Studio pythoncore project to make quiet security warnings when building zlib C files (Modules\zlib\ subdirectory). --- diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj index 99291ea5a95d..7cae0a54802b 100644 --- a/PCbuild/pythoncore.vcxproj +++ b/PCbuild/pythoncore.vcxproj @@ -70,7 +70,7 @@ /Zm200 %(AdditionalOptions) $(PySourcePath)Python;$(PySourcePath)Modules\zlib;%(AdditionalIncludeDirectories) - _USRDLL;Py_BUILD_CORE;Py_ENABLE_SHARED;MS_DLL_ID="$(SysWinVer)";%(PreprocessorDefinitions) + _USRDLL;Py_BUILD_CORE;Py_ENABLE_SHARED;_CRT_SECURE_NO_WARNINGS;MS_DLL_ID="$(SysWinVer)";%(PreprocessorDefinitions) ws2_32.lib;%(AdditionalDependencies)