mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-13 18:16:35 +01:00
'std::isnan' is not available in MSVC (at least, not VC8)
This commit is contained in:
parent
453ed61c4a
commit
f9b99edc4a
1 changed files with 6 additions and 1 deletions
|
|
@ -16,6 +16,11 @@
|
||||||
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
* 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 <cmath>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
@ -812,7 +817,7 @@ ControlList::modify (iterator iter, double when, double val)
|
||||||
(*iter)->when = when;
|
(*iter)->when = when;
|
||||||
(*iter)->value = val;
|
(*iter)->value = val;
|
||||||
|
|
||||||
if (std::isnan (val)) {
|
if (isnan (val)) {
|
||||||
abort ();
|
abort ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue