Add algorithm header include
authorHirotoshi YOSHITAKA <tyounan.moti@gmail.com>
Mon, 6 Oct 2014 14:47:11 +0000 (23:47 +0900)
committerHirotoshi YOSHITAKA <tyounan.moti@gmail.com>
Mon, 6 Oct 2014 14:47:11 +0000 (23:47 +0900)
Without algorithm header, Visual Studio complaints that std::max is not
declared and defined.
Including algorithm header resolves this issue.

RtAudio.cpp

index af7d205a1977491c39e76b85affb3fc8dc332807..778cbf248557b879dc8b194c29d756c5e002afb1 100644 (file)
@@ -45,6 +45,7 @@
 #include <cstdlib>\r
 #include <cstring>\r
 #include <climits>\r
+#include <algorithm>\r
 \r
 // Static variable definitions.\r
 const unsigned int RtApi::MAX_SAMPLE_RATES = 14;\r