summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorJohn Emmas <johne53@tiscali.co.uk>2014-01-30 18:37:36 +0000
committerJohn Emmas <johne53@tiscali.co.uk>2014-01-30 18:37:36 +0000
commitbef44836119ef191422de21df8dd79f249fa7ea0 (patch)
treed789424bfc85db32ec5769ea3eab9e4c9a02c711 /gtk2_ardour
parente0b2764b912b15ddb329833974e0bef037969d37 (diff)
Use round() instead of rintf() when building with MSVC
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/processor_box.cc4
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>