From: Mikko Rasa Date: Sun, 3 Sep 2023 23:18:31 +0000 (+0300) Subject: Enable correct __cplusplus macro on MSVC X-Git-Url: https://git.tdb.fi/?a=commitdiff_plain;h=ac3de4fd9821a02ddc89c079963f00c05cb03c8e;p=builder.git Enable correct __cplusplus macro on MSVC --- diff --git a/plugins/msvc/msvccompiler.cpp b/plugins/msvc/msvccompiler.cpp index e7ec3b7..3206e57 100644 --- a/plugins/msvc/msvccompiler.cpp +++ b/plugins/msvc/msvccompiler.cpp @@ -114,6 +114,8 @@ ExternalTask::Arguments MsvcCompiler::_run(const ObjectFile &object, FS::Path &w argv.push_back("/std:"+std.str()); } + argv.push_back("/Zc:__cplusplus"); + if(binfo.warning_level>=1) { argv.push_back(format("/W%d", binfo.warning_level));