From: rossb Date: Tue, 7 Apr 2009 10:08:48 +0000 (+0000) Subject: added pragma to autolink libwinmm with msvc to get timeGetTime symbol when only using... X-Git-Tag: svn/1415~5 X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=076044de33e9632ab9094747d8821c4c0fdd0497;p=portaudio added pragma to autolink libwinmm with msvc to get timeGetTime symbol when only using ASIO. thanks Yann --- diff --git a/src/os/win/pa_win_util.c b/src/os/win/pa_win_util.c index 838e97c..4c7d9ce 100644 --- a/src/os/win/pa_win_util.c +++ b/src/os/win/pa_win_util.c @@ -51,6 +51,10 @@ #include "pa_util.h" +#if (defined(WIN32) && (defined(_MSC_VER) && (_MSC_VER >= 1200))) /* MSC version 6 and above */ +#pragma comment( lib, "winmm.lib" ) +#endif + /* Track memory allocations to avoid leaks.