From: rossb Date: Wed, 14 Jul 2010 06:45:25 +0000 (+0000) Subject: added pragma to auto-link winmm.lib when compiling with msvc X-Git-Tag: pa_stable_v19_20110326_r1647~105 X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=a0eb0545a5914e448c1cad15440bf3ace2573112;p=portaudio added pragma to auto-link winmm.lib when compiling with msvc --- diff --git a/src/hostapi/asio/pa_asio.cpp b/src/hostapi/asio/pa_asio.cpp index 009fbfa..f9b5e70 100644 --- a/src/hostapi/asio/pa_asio.cpp +++ b/src/hostapi/asio/pa_asio.cpp @@ -169,6 +169,12 @@ */ +/* winmm.lib is needed for timeGetTime() (this is in winmm.a if you're using gcc) */ +#if (defined(WIN32) && (defined(_MSC_VER) && (_MSC_VER >= 1200))) /* MSC version 6 and above */ +#pragma comment(lib, "winmm.lib") +#endif + + /* external reference to ASIO SDK's asioDrivers. This is a bit messy because we want to explicitly manage