diff options
author | John Emmas <johne53@tiscali.co.uk> | 2013-07-23 07:50:25 +0100 |
---|---|---|
committer | John Emmas <johne53@tiscali.co.uk> | 2013-07-23 07:50:25 +0100 |
commit | f9b99edc4a4036dd767e04a6c5c18e0a0ddf5880 (patch) | |
tree | a9c1af59088fe527f4366bfca0d8c5ba6d3f84e7 /libs | |
parent | 453ed61c4a23551c7ffeee5d972b29d6d92c1591 (diff) |
'std::isnan' is not available in MSVC (at least, not VC8)
Diffstat (limited to 'libs')
-rw-r--r-- | libs/evoral/src/ControlList.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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 <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 (); } |