From 7ebdc9e48c99a92475b48668284695663e871f7d Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Thu, 1 May 2014 14:17:51 +0100 Subject: util: Don't attempt to redefine INFINITY/NAN on VS 2013. There are now provided by VS. Reviewed-by: Brian Paul Reviewed-by: Roland Scheidegger --- src/gallium/auxiliary/util/u_math.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h index a60e1830a72..2ade64af4fe 100644 --- a/src/gallium/auxiliary/util/u_math.h +++ b/src/gallium/auxiliary/util/u_math.h @@ -138,8 +138,13 @@ roundf(float x) } #endif +#ifndef INFINITY #define INFINITY (DBL_MAX + DBL_MAX) +#endif + +#ifndef NAN #define NAN (INFINITY - INFINITY) +#endif #endif /* _MSC_VER */ -- cgit v1.2.3