]> Repos - portaudio/commitdiff
fixed dummy compilation of pa_win_wasapi.cpp using MinGW(GCC) compilers by adding...
authordmitrykos <dmitrykos@0f58301d-fd10-0410-b4af-bbb618454e57>
Tue, 2 Mar 2010 12:17:03 +0000 (12:17 +0000)
committerdmitrykos <dmitrykos@0f58301d-fd10-0410-b4af-bbb618454e57>
Tue, 2 Mar 2010 12:17:03 +0000 (12:17 +0000)
src/hostapi/wasapi/pa_win_wasapi.cpp

index a3bbcf45e48bd2cf54812dfea342ee1d9e12649d..4315dcf3c59306119c4ccd34c7f92eaac6c3758c 100644 (file)
        #undef INITGUID\r
 #endif\r
 \r
+#ifndef _AVRT_ //<< fix MinGW dummy compile by defining missing type: AVRT_PRIORITY\r
+typedef enum _AVRT_PRIORITY\r
+{\r
+    AVRT_PRIORITY_LOW = -1,\r
+    AVRT_PRIORITY_NORMAL,\r
+    AVRT_PRIORITY_HIGH,\r
+    AVRT_PRIORITY_CRITICAL\r
+} AVRT_PRIORITY, *PAVRT_PRIORITY;\r
+#endif\r
+\r
 #include "pa_util.h"\r
 #include "pa_allocation.h"\r
 #include "pa_hostapi.h"\r