]> Repos - portaudio/commitdiff
added pragma to auto-link winmm.lib when compiling with msvc
authorrossb <rossb@0f58301d-fd10-0410-b4af-bbb618454e57>
Wed, 14 Jul 2010 06:45:25 +0000 (06:45 +0000)
committerrossb <rossb@0f58301d-fd10-0410-b4af-bbb618454e57>
Wed, 14 Jul 2010 06:45:25 +0000 (06:45 +0000)
src/hostapi/asio/pa_asio.cpp

index 009fbfaa38a4baafb1c391894ecc375676f15f6a..f9b5e70346179d05b83293ff577bdb873bdaf8ec 100644 (file)
 */
 
 
+/* 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