From: rossb Date: Thu, 10 Dec 2009 08:09:21 +0000 (+0000) Subject: added cast to IsDebuggerPresentPtr, fixes compilation of asio on some systems X-Git-Tag: pa_stable_v19_20110326_r1647~193 X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=dc6f3c8ec235f7dbcdf5e5dd064e7a5c4b5bbf77;p=portaudio added cast to IsDebuggerPresentPtr, fixes compilation of asio on some systems --- diff --git a/src/hostapi/asio/pa_asio.cpp b/src/hostapi/asio/pa_asio.cpp index d7a1c2b..01096cf 100644 --- a/src/hostapi/asio/pa_asio.cpp +++ b/src/hostapi/asio/pa_asio.cpp @@ -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 ) {