summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Scavone <gary@music.mcgill.ca>2014-04-15 21:16:04 -0400
committerGary Scavone <gary@music.mcgill.ca>2014-04-15 21:16:04 -0400
commitadf4deb4526c0bd7bcda8c0947152e9ac975d2c8 (patch)
treeac7dd48d0df82d3980e7dd9b754e13d9907c522d
parentd5c164a7fdf59c840833ca9a51c8b9dcc42196be (diff)
Update for compiling WASAPI on both MinGW and VS.
-rw-r--r--RtAudio.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/RtAudio.h b/RtAudio.h
index 52f361a..b4e43e3 100644
--- 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>