'std::isnan' is not available in MSVC (at least, not VC8)
This commit is contained in:
parent
453ed61c4a
commit
f9b99edc4a
@ -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 ();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user