Module: Mesa Branch: master Commit: 52427f0ba703f933b70d669ae565c7aeb733236d URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=52427f0ba703f933b70d669ae565c7aeb733236d
Author: José Fonseca <[email protected]> Date: Sat Oct 9 12:10:07 2010 +0100 util: Defined M_SQRT2 when not available. --- src/gallium/auxiliary/util/u_math.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h index 69a7681..37294b7 100644 --- 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) _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
