从2013年更新到2019/2017年的旧项目工具链后生成错误

I'm trying to build a legacy project (it builds just fine with 2013 toolchain). After switching toolchain to 2014(v141) it can't be build with errors like https://docs.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/compiler-error-c2375?f1url=https%3A%2F%2Fmsdn.microsoft.com%2Fquery%2Fdev15.query%3FappId%3DDev15IDEF1%26l%3DPL-PL%26k%3Dk(C2375)%26rd%3Dtrue&view=vs-2019 c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\corecrt_io.h 259

Or https://docs.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/compiler-error-c2084?f1url=https%3A%2F%2Fmsdn.microsoft.com%2Fquery%2Fdev15.query%3FappId%3DDev15IDEF1%26l%3DPL-PL%26k%3Dk(C2084)%26rd%3Dtrue&view=vs-2019 that points to redefinition of printf and vprintf functions I wonder if there is some directive that i could use to make it builds on 2017 toolchain it looks like something has changed and it is not possible to redefine it in that way

评论