diff --git a/meson.build b/meson.build index ac343b6b018..c2a8dc30576 100644 --- a/meson.build +++ b/meson.build @@ -1081,6 +1081,7 @@ if cc.get_id() == 'msvc' '/wd5105', # macro expansion producing 'defined' has undefined behavior (winbase.h, need Windows SDK upgrade) '/we4020', # Error when passing the wrong number of parameters '/we4024', # Error when passing different type of parameter + '/Zc:__cplusplus', #Set __cplusplus macro to match the /std:c++ on the command line ] if cc.has_argument(a) c_args += a