mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 08:14:58 +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
|
||||
*/
|
||||
|
||||
// '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…
Add table
Add a link
Reference in a new issue