diff options
author | Chris Robinson <[email protected]> | 2012-03-27 08:44:08 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-03-27 08:44:08 -0700 |
commit | 7b35c77062b00a0e4b379493ac4a364521f64cf0 (patch) | |
tree | 4bfd599643c1417dacb77c646aa85c4cc4928d14 | |
parent | c23cfdcfa1ae643f6d598a5a52140fdcc69e55a0 (diff) |
Add a missing round() for MSVC
-rw-r--r-- | utils/makehrtf.c | 9 |
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) |