meson: Set /Zc:__cplusplus for MSVC

Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12881>
This commit is contained in:
Jesse Natalie
2021-08-08 08:45:34 -07:00
committed by Marge Bot
parent e7a1eebbb2
commit ccb5cf8b4b

View File

@@ -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++<version> on the command line
]
if cc.has_argument(a)
c_args += a