diff options
author | Rupert Steel <[email protected]> | 2014-01-09 13:43:36 +1300 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-01-09 10:49:31 -0800 |
commit | 2aa95db5b95aedcf67a735f3b00b3a077dedbf0a (patch) | |
tree | 4f0629cd65c00f74bb89b350335cf67c845f434f /utils | |
parent | da2c9732da4c08810b8245fc3e698b4645129fc3 (diff) |
Fixed compile error in Visual Studio 2013 by not redefining symbols that are now defined in the VS2013 math.h file.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/makehrtf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/makehrtf.c b/utils/makehrtf.c index 3df6d81c..45809099 100644 --- a/utils/makehrtf.c +++ b/utils/makehrtf.c @@ -733,8 +733,8 @@ static int StrSubst (const char * in, const char * pat, const char * rep, const return (! truncated); } -// Provide missing math routines for MSVC. -#ifdef _MSC_VER +// Provide missing math routines for MSVC versions < 1800 (Visual Studio 2013). +#if defined(_MSC_VER) && _MSC_VER < 1800 static double round (double val) { if (val < 0.0) return (ceil (val - 0.5)); |