From 622eb8643bcc4ec00de8e3927eb5629e0b5c6077 Mon Sep 17 00:00:00 2001 From: Mike Antipov Date: Mon, 9 Nov 2009 15:56:49 +0200 Subject: Fixed windows build for M_PI constant. Macro definitions for common math constants (e.g. M_PI) are declared under the _USE_MATH_DEFINES in math.h Added "#define _USE_MATH_DEFINES" before including math.h (for Windows build only) --HG-- branch : product-engine --- indra/llmath/llinterp.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'indra') diff --git a/indra/llmath/llinterp.h b/indra/llmath/llinterp.h index 8beeef480b..36ca2e9865 100644 --- a/indra/llmath/llinterp.h +++ b/indra/llmath/llinterp.h @@ -32,6 +32,13 @@ #ifndef LL_LLINTERP_H #define LL_LLINTERP_H +#if defined(LL_WINDOWS) +// macro definitions for common math constants (e.g. M_PI) are declared under the _USE_MATH_DEFINES +// on Windows system. +// So, let's define _USE_MATH_DEFINES before including math.h + #define _USE_MATH_DEFINES +#endif + #include "math.h" // Class from which different types of interpolators can be derived -- cgit v1.2.3