aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/gallium
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2013-07-22 14:47:25 +0200
committermarha <marha@users.sourceforge.net>2013-07-22 14:47:25 +0200
commitb6aadb8490bdacf33196fa0898fe1247b9a8ee2c (patch)
treefd3eb9fb24cac7733fa7b8afab87fa6e46247c02 /mesalib/src/gallium
parent89bc3ee988b62eb5e10284bac32a176955546410 (diff)
downloadvcxsrv-b6aadb8490bdacf33196fa0898fe1247b9a8ee2c.tar.gz
vcxsrv-b6aadb8490bdacf33196fa0898fe1247b9a8ee2c.tar.bz2
vcxsrv-b6aadb8490bdacf33196fa0898fe1247b9a8ee2c.zip
libX11 mesa git update 22 Jul 2013
libX11 commit 24d3ee0d08f24e23c91d55702f010f73d7b908e5 mesa commit 190312949e8ce2c1dc884d4db5d6a44511666641
Diffstat (limited to 'mesalib/src/gallium')
-rw-r--r--mesalib/src/gallium/auxiliary/util/u_math.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/mesalib/src/gallium/auxiliary/util/u_math.h b/mesalib/src/gallium/auxiliary/util/u_math.h
index bc3948875..702d4e9d4 100644
--- a/mesalib/src/gallium/auxiliary/util/u_math.h
+++ b/mesalib/src/gallium/auxiliary/util/u_math.h
@@ -48,6 +48,7 @@ extern "C" {
#include <math.h>
+#include <float.h>
#include <stdarg.h>
#ifdef PIPE_OS_UNIX
@@ -133,6 +134,9 @@ roundf(float x)
return x >= 0.0f ? floorf(x + 0.5f) : ceilf(x - 0.5f);
}
+#define INFINITY (DBL_MAX + DBL_MAX)
+#define NAN (INFINITY - INFINITY)
+
#endif /* _MSC_VER */