mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 00:04:56 +01:00
Make it compile with C++11 support.
Reference : https://bugs.webkit.org/show_bug.cgi?id=59249
This commit is contained in:
parent
036b6234ac
commit
cb8abbe8d2
4 changed files with 39 additions and 15 deletions
|
|
@ -17,6 +17,16 @@
|
|||
*/
|
||||
|
||||
#include <cmath>
|
||||
|
||||
#ifdef COMPILER_MSVC
|
||||
#include <float.h>
|
||||
|
||||
// 'std::isnan()' is not available in MSVC.
|
||||
#define isnan_local(val) (bool)_isnan((double)val)
|
||||
#else
|
||||
#define isnan_local std::isnan
|
||||
#endif
|
||||
|
||||
#include <cassert>
|
||||
#include <utility>
|
||||
#include <iostream>
|
||||
|
|
@ -837,8 +847,7 @@ ControlList::modify (iterator iter, double when, double val)
|
|||
|
||||
(*iter)->when = when;
|
||||
(*iter)->value = val;
|
||||
|
||||
if (isnan (val)) {
|
||||
if (isnan_local (val)) {
|
||||
abort ();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue