summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-10-28 23:31:25 +0000
committerDavid Robillard <d@drobilla.net>2010-10-28 23:31:25 +0000
commitaa7394d3c315180fc0ccd0ea17cfbd435a42d350 (patch)
treeb0f9619d5690d377f2cde98633ac3db28a5ea7ce /src
parent3e2316c102b71a2b4f186df1937007ff4b79388a (diff)
downloadingen-aa7394d3c315180fc0ccd0ea17cfbd435a42d350.tar.gz
ingen-aa7394d3c315180fc0ccd0ea17cfbd435a42d350.tar.bz2
ingen-aa7394d3c315180fc0ccd0ea17cfbd435a42d350.zip
OSX compilation fix: #include missing <math.h> and use std::isnan.
isnan isn't really in std::, I don't know what's oing on with this one. Hopefully this works in linux... git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2658 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/gui/PortMenu.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/PortMenu.cpp b/src/gui/PortMenu.cpp
index c6c28a33..068d8ccc 100644
--- a/src/gui/PortMenu.cpp
+++ b/src/gui/PortMenu.cpp
@@ -15,6 +15,7 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <math.h>
#include <gtkmm.h>
#include "raul/SharedPtr.hpp"
#include "interface/EngineInterface.hpp"
@@ -129,10 +130,10 @@ PortMenu::on_menu_reset_range()
float min, max;
parent->default_port_value_range(model, min, max);
- if (!isnan(min))
+ if (!std::isnan(min))
App::instance().engine()->set_property(_object->path(), uris.lv2_minimum, min);
- if (!isnan(max))
+ if (!std::isnan(max))
App::instance().engine()->set_property(_object->path(), uris.lv2_maximum, max);
}