projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53d7f5e
)
util: Defined M_SQRT2 when not available.
author
José Fonseca
<jfonseca@vmware.com>
Sat, 9 Oct 2010 11:10:07 +0000
(12:10 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Sat, 9 Oct 2010 11:12:59 +0000
(12:12 +0100)
src/gallium/auxiliary/util/u_math.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_math.h
b/src/gallium/auxiliary/util/u_math.h
index 69a76814945d206eadf396a36384b6a7ab5bd76f..37294b7203f1716df9f7bcdcfcfc026cbbd39efc 100644
(file)
--- a/
src/gallium/auxiliary/util/u_math.h
+++ b/
src/gallium/auxiliary/util/u_math.h
@@
-118,6
+118,11
@@
__inline double __cdecl atan2(double val)
#endif
+#ifndef M_SQRT2
+#define M_SQRT2 1.41421356237309504880
+#endif
+
+
#if defined(_MSC_VER)
#if _MSC_VER < 1400 && !defined(__cplusplus) || defined(PIPE_SUBSYSTEM_WINDOWS_CE)