]> Repos - portaudio/commitdiff
added cast to IsDebuggerPresentPtr, fixes compilation of asio on some systems
authorrossb <rossb@0f58301d-fd10-0410-b4af-bbb618454e57>
Thu, 10 Dec 2009 08:09:21 +0000 (08:09 +0000)
committerrossb <rossb@0f58301d-fd10-0410-b4af-bbb618454e57>
Thu, 10 Dec 2009 08:09:21 +0000 (08:09 +0000)
src/hostapi/asio/pa_asio.cpp

index d7a1c2b2f001632dd3484fe5a42571cd8af520d0..01096cffae584f0793321fafb4765030245b12a9 100644 (file)
@@ -1164,7 +1164,7 @@ PaError PaAsio_Initialize( PaUtilHostApiRepresentation **hostApi, PaHostApiIndex
             goto error;
         }
 
-        IsDebuggerPresent_ = GetProcAddress( LoadLibrary( "Kernel32.dll" ), "IsDebuggerPresent" );
+        IsDebuggerPresent_ = (IsDebuggerPresentPtr)GetProcAddress( LoadLibrary( "Kernel32.dll" ), "IsDebuggerPresent" );
 
         for( i=0; i < driverCount; ++i )
         {