From 2aa95db5b95aedcf67a735f3b00b3a077dedbf0a Mon Sep 17 00:00:00 2001 From: Rupert Steel Date: Thu, 9 Jan 2014 13:43:36 +1300 Subject: Fixed compile error in Visual Studio 2013 by not redefining symbols that are now defined in the VS2013 math.h file. --- utils/makehrtf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/makehrtf.c') 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)); -- cgit v1.2.3