From: dmitrykos Date: Thu, 15 Apr 2021 08:39:02 +0000 (+0300) Subject: wasapi: Fixed compilation with MinGW (W64) when targeting 32-bit platform X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=c6178e8592d936e246177a8991b75c9a043ccd00;p=portaudio wasapi: Fixed compilation with MinGW (W64) when targeting 32-bit platform --- diff --git a/src/hostapi/wasapi/pa_win_wasapi.c b/src/hostapi/wasapi/pa_win_wasapi.c index 23f41a1..0b19084 100644 --- a/src/hostapi/wasapi/pa_win_wasapi.c +++ b/src/hostapi/wasapi/pa_win_wasapi.c @@ -168,12 +168,14 @@ #include #include #else - typedef struct _BYTE_BLOB - { - unsigned long clSize; - unsigned char abData[ 1 ]; - } BYTE_BLOB; - typedef /* [unique] */ __RPC_unique_pointer BYTE_BLOB *UP_BYTE_BLOB; + #ifndef _BLOB_DEFINED + typedef struct _BYTE_BLOB + { + unsigned long clSize; + unsigned char abData[ 1 ]; + } BYTE_BLOB; + typedef /* [unique] */ __RPC_unique_pointer BYTE_BLOB *UP_BYTE_BLOB; + #endif typedef LONGLONG REFERENCE_TIME; #define NONAMELESSUNION #endif