]> Repos - portaudio/commit
use variadic arguments in DEFINE_GUID also for MSVC (#374)
authorJohn Melas <ioannis.melas@gmail.com>
Thu, 28 Jan 2021 01:29:24 +0000 (03:29 +0200)
committerGitHub <noreply@github.com>
Thu, 28 Jan 2021 01:29:24 +0000 (12:29 +1100)
commitb50bca981ebe3616dbbb1ed97b4f0fe528c6e91c
treebf61c2e4bcbe337afae4491c8ccb4c1c0f80619a
parent358d153564111f31bc32bd564b0d9c53ed17f910
use variadic arguments in DEFINE_GUID also for MSVC (#374)

The fix for DEFINE_GUID that was recently added in pa_win_wdmks.c is also needed for the MSVC compiler.
Latest versions of the compiler support the /Zc:preprocessor option which is conforming to C99 and later standards
https://docs.microsoft.com/en-us/cpp/build/reference/zc-preprocessor?view=msvc-160
so it generates the exact same error as Clang (too many arguments error).

Co-authored-by: John Melas <john@jmelas.gr>
src/hostapi/wdmks/pa_win_wdmks.c