From dc6f3c8ec235f7dbcdf5e5dd064e7a5c4b5bbf77 Mon Sep 17 00:00:00 2001 From: rossb Date: Thu, 10 Dec 2009 08:09:21 +0000 Subject: [PATCH] added cast to IsDebuggerPresentPtr, fixes compilation of asio on some systems --- src/hostapi/asio/pa_asio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) { -- 2.43.0