meson: wasapi2,mediafoundation: Work around Windows SDK header issue
authorSeungha Yang <seungha@centricular.com>
Sat, 16 Oct 2021 13:43:32 +0000 (22:43 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sun, 17 Oct 2021 08:01:47 +0000 (08:01 +0000)
commit47a53f50637965919447f721b3956b974a2a0afd
treeb583c185d36a8ddba850b5bf3485fb7f1f6f3a9b
parente94e60c3423a900a31c2eb3d679acb32949cc9dc
meson: wasapi2,mediafoundation: Work around Windows SDK header issue

Some SDK headers are not standard compliant, so MSVC will
complain when such headers are in use with "/permissive-" compile
option. Use "/Zc:twoPhase-" to work around the issue as documented in
https://docs.microsoft.com/en-us/cpp/build/reference/permissive-standards-conformance?view=msvc-160#windows-header-issues

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1174>
subprojects/gst-plugins-bad/sys/mediafoundation/meson.build
subprojects/gst-plugins-bad/sys/wasapi2/meson.build