diff options
author | John Emmas <johne53@tiscali.co.uk> | 2014-01-30 18:37:36 +0000 |
---|---|---|
committer | John Emmas <johne53@tiscali.co.uk> | 2014-01-30 18:37:36 +0000 |
commit | bef44836119ef191422de21df8dd79f249fa7ea0 (patch) | |
tree | d789424bfc85db32ec5769ea3eab9e4c9a02c711 /gtk2_ardour | |
parent | e0b2764b912b15ddb329833974e0bef037969d37 (diff) |
Use round() instead of rintf() when building with MSVC
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/processor_box.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc index c9b7e04a7c..aa8f285a43 100644 --- a/gtk2_ardour/processor_box.cc +++ b/gtk2_ardour/processor_box.cc @@ -21,6 +21,10 @@ #include "gtk2ardour-config.h" #endif +#ifdef COMPILER_MSVC +#define rintf(x) round((x) + 0.5) +#endif + #include <cmath> #include <iostream> #include <set> |