aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/makehrtf.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/utils/makehrtf.c b/utils/makehrtf.c
index a5debab7..9f0a5d95 100644
--- a/utils/makehrtf.c
+++ b/utils/makehrtf.c
@@ -19,6 +19,15 @@
#define M_PI 3.14159265358979323846
#endif
+#ifdef _MSC_VER
+static double round(double val)
+{
+ if(val < 0.0)
+ return ceil(val - 0.5);
+ return floor(val + 0.5);
+}
+#endif
+
// The sample rate of the MIT HRIR data sets.
#define MIT_IR_RATE (44100)