aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmath
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-11-10 13:58:38 -0700
committerMcCabe Maxsted2009-11-10 13:58:38 -0700
commit25b13a129b1617a8d3036213472b1c34122a5e7e (patch)
tree0f35b94bd42a753544cdf420ab70230b15013e8c /linden/indra/llmath
parentFixed llstartup header issue and removed WIN32_LEAN_AND_MEAN define (diff)
downloadmeta-impy-25b13a129b1617a8d3036213472b1c34122a5e7e.zip
meta-impy-25b13a129b1617a8d3036213472b1c34122a5e7e.tar.gz
meta-impy-25b13a129b1617a8d3036213472b1c34122a5e7e.tar.bz2
meta-impy-25b13a129b1617a8d3036213472b1c34122a5e7e.tar.xz
Viewer compiles, but still trying to get everything to link on Windows
Diffstat (limited to 'linden/indra/llmath')
-rw-r--r--linden/indra/llmath/llmath.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/linden/indra/llmath/llmath.h b/linden/indra/llmath/llmath.h
index 66451b1..9f8e539 100644
--- a/linden/indra/llmath/llmath.h
+++ b/linden/indra/llmath/llmath.h
@@ -60,9 +60,7 @@
60#endif 60#endif
61 61
62// Single Precision Floating Point Routines 62// Single Precision Floating Point Routines
63#ifndef fsqrtf 63#if _MSC_VER < 1400
64#define fsqrtf(x) ((F32)sqrt((F64)(x)))
65#endif
66#ifndef sqrtf 64#ifndef sqrtf
67#define sqrtf(x) ((F32)sqrt((F64)(x))) 65#define sqrtf(x) ((F32)sqrt((F64)(x)))
68#endif 66#endif
@@ -83,6 +81,11 @@
83#ifndef powf 81#ifndef powf
84#define powf(x,y) ((F32)pow((F64)(x),(F64)(y))) 82#define powf(x,y) ((F32)pow((F64)(x),(F64)(y)))
85#endif 83#endif
84#endif
85
86#ifndef fsqrtf
87#define fsqrtf(x) sqrtf(x)
88#endif
86 89
87const F32 GRAVITY = -9.8f; 90const F32 GRAVITY = -9.8f;
88 91