From a0eb0545a5914e448c1cad15440bf3ace2573112 Mon Sep 17 00:00:00 2001 From: rossb Date: Wed, 14 Jul 2010 06:45:25 +0000 Subject: [PATCH] added pragma to auto-link winmm.lib when compiling with msvc --- src/hostapi/asio/pa_asio.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.43.0