]> Repos - portaudio/commitdiff
wasapi: Fixed compilation with MinGW (W64) when targeting 32-bit platform
authordmitrykos <dmitrykos@neutroncode.com>
Thu, 15 Apr 2021 08:39:02 +0000 (11:39 +0300)
committerdmitrykos <dmitrykos@neutroncode.com>
Thu, 15 Apr 2021 08:39:02 +0000 (11:39 +0300)
src/hostapi/wasapi/pa_win_wasapi.c

index 23f41a1ad1925533f0ef5443d29f97e6f169c8dd..0b19084fe17e0fc73f752881d81928573c4d0e89 100644 (file)
         #include <oleidl.h>
         #include <objidl.h>
     #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