diff options
author | Mike Antipov <mantipov@productengine.com> | 2009-11-09 15:56:49 +0200 |
---|---|---|
committer | Mike Antipov <mantipov@productengine.com> | 2009-11-09 15:56:49 +0200 |
commit | 622eb8643bcc4ec00de8e3927eb5629e0b5c6077 (patch) | |
tree | ddd6ac49597de0f511875368c583aed89f278b92 /indra/llmath/llinterp.h | |
parent | c4a5030caa5951b6fe1e985eea234412e157cf68 (diff) |
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
Diffstat (limited to 'indra/llmath/llinterp.h')
-rw-r--r-- | indra/llmath/llinterp.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 |