From 4ce9f0d0a86667cf5c5b428356cdb8702f76888b Mon Sep 17 00:00:00 2001 From: Ross Bencina Date: Mon, 14 Dec 2020 19:20:43 +1100 Subject: [PATCH] fix issue #321 broken MSVC build. Always define PaWasapi_UpdateDeviceList() even when it is a no-op because it is mentioned in the .def file. --- src/hostapi/wasapi/pa_win_wasapi.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/hostapi/wasapi/pa_win_wasapi.c b/src/hostapi/wasapi/pa_win_wasapi.c index 86c08c2..9bae24c 100644 --- a/src/hostapi/wasapi/pa_win_wasapi.c +++ b/src/hostapi/wasapi/pa_win_wasapi.c @@ -2498,12 +2498,14 @@ static PaError UpdateDeviceList() } // ------------------------------------------------------------------------------------------ -#if defined(PA_WASAPI_MAX_CONST_DEVICE_COUNT) && (PA_WASAPI_MAX_CONST_DEVICE_COUNT > 0) PaError PaWasapi_UpdateDeviceList() { +#if defined(PA_WASAPI_MAX_CONST_DEVICE_COUNT) && (PA_WASAPI_MAX_CONST_DEVICE_COUNT > 0) return UpdateDeviceList(); -} +#else + return paNoError; #endif +} // ------------------------------------------------------------------------------------------ int PaWasapi_GetDeviceCurrentFormat( PaStream *pStream, void *pFormat, unsigned int formatSize, int bOutput ) -- 2.43.0