'std::isnan' is not available in MSVC (at least, not VC8)
[ardour.git] / libs / evoral / src / ControlList.cpp
index a095daa13527e9f25e6dbbaf3076495d39adfa63..18803af34854ab2d44167eb04c108bb1911fcf2d 100644 (file)
  * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+// 'std::isnan()' is not available in MSVC.
+#ifndef COMPILER_MSVC
+using std::isnan;
+#endif
+
 #include <cmath>
 #include <cassert>
 #include <utility>
@@ -812,7 +817,7 @@ ControlList::modify (iterator iter, double when, double val)
                (*iter)->when = when;
                (*iter)->value = val;
 
-               if (std::isnan (val)) {
+               if (isnan (val)) {
                        abort ();
                }