From f9b99edc4a4036dd767e04a6c5c18e0a0ddf5880 Mon Sep 17 00:00:00 2001 From: John Emmas Date: Tue, 23 Jul 2013 07:50:25 +0100 Subject: [PATCH] 'std::isnan' is not available in MSVC (at least, not VC8) --- libs/evoral/src/ControlList.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/evoral/src/ControlList.cpp b/libs/evoral/src/ControlList.cpp index a095daa135..18803af348 100644 --- a/libs/evoral/src/ControlList.cpp +++ b/libs/evoral/src/ControlList.cpp @@ -16,6 +16,11 @@ * 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 #include #include @@ -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 (); }