diff options
author | Sakari Bergen <sakari.bergen@beatwaves.net> | 2008-12-29 19:50:19 +0000 |
---|---|---|
committer | Sakari Bergen <sakari.bergen@beatwaves.net> | 2008-12-29 19:50:19 +0000 |
commit | 3d239bb9d59f555d08fd9362e9ce50de1255c633 (patch) | |
tree | 8346d16f52cdbf54d92268d6f64f60a3cdc1d925 /gtk2_ardour/plugin_eq_gui.cc | |
parent | 22d73333c62957ec9d3ecfb47849c4e2048e2e3f (diff) |
Fix some compiling warnings and errors in OS X
git-svn-id: svn://localhost/ardour2/branches/3.0@4358 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/plugin_eq_gui.cc')
-rw-r--r-- | gtk2_ardour/plugin_eq_gui.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/plugin_eq_gui.cc b/gtk2_ardour/plugin_eq_gui.cc index 34b7788819..a7e6b4261c 100644 --- a/gtk2_ardour/plugin_eq_gui.cc +++ b/gtk2_ardour/plugin_eq_gui.cc @@ -31,7 +31,7 @@ #include <gtkmm/checkbutton.h> #include <iostream> - +#include <cmath> PluginEqGui::PluginEqGui(boost::shared_ptr<ARDOUR::PluginInsert> pluginInsert) : _min_dB(-12.0), @@ -683,13 +683,13 @@ PluginEqGui::plot_signal_amplitude_difference(Gtk::Widget *w, cairo_t *cr) } */ - if (isinf(power)) { + if (std::isinf(power)) { if (power < 0) { power = _min_dB - 1.0; } else { power = _max_dB - 1.0; } - } else if (isnan(power)) { + } else if (std::isnan(power)) { power = _min_dB - 1.0; } |