util: Don't attempt to redefine INFINITY/NAN on VS 2013.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 1 May 2014 13:17:51 +0000 (14:17 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 2 May 2014 21:04:47 +0000 (22:04 +0100)
There are now provided by VS.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/util/u_math.h

index a60e183..2ade64a 100644 (file)
@@ -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 */