Update for compiling WASAPI on both MinGW and VS.
authorGary Scavone <gary@music.mcgill.ca>
Wed, 16 Apr 2014 01:16:04 +0000 (21:16 -0400)
committerGary Scavone <gary@music.mcgill.ca>
Wed, 16 Apr 2014 01:16:04 +0000 (21:16 -0400)
RtAudio.h

index 52f361a75f20924b9bf7881a23af93dc9746eedf..b4e43e35a2c4457e51609f22fb60377251dffd26 100644 (file)
--- a/RtAudio.h
+++ b/RtAudio.h
@@ -568,6 +568,10 @@ class RtAudio
 
 // Operating system dependent thread functionality.
 #if defined(__WINDOWS_DS__) || defined(__WINDOWS_ASIO__) || defined(__WINDOWS_WASAPI__)
+
+  #ifndef NOMINMAX
+    #define NOMINMAX
+  #endif
   #include <windows.h>
   #include <process.h>