aboutsummaryrefslogtreecommitdiff
path: root/mesalib
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2013-07-22 14:48:36 +0200
committermarha <marha@users.sourceforge.net>2013-07-22 14:48:36 +0200
commit81d811ac780a2524fff09a516b6f0212c3f209a2 (patch)
tree0607523b8ebef04e930cdbf538274c59f983cd07 /mesalib
parentcde797e5f774a44b89e51da0f32472329eac06cb (diff)
parentb6aadb8490bdacf33196fa0898fe1247b9a8ee2c (diff)
downloadvcxsrv-81d811ac780a2524fff09a516b6f0212c3f209a2.tar.gz
vcxsrv-81d811ac780a2524fff09a516b6f0212c3f209a2.tar.bz2
vcxsrv-81d811ac780a2524fff09a516b6f0212c3f209a2.zip
Merge remote-tracking branch 'origin/released'
* origin/released: libX11 mesa git update 22 Jul 2013
Diffstat (limited to 'mesalib')
-rw-r--r--mesalib/src/gallium/auxiliary/util/u_math.h4
-rw-r--r--mesalib/src/glsl/glsl_parser_extras.cpp3
2 files changed, 6 insertions, 1 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 */
diff --git a/mesalib/src/glsl/glsl_parser_extras.cpp b/mesalib/src/glsl/glsl_parser_extras.cpp
index 84c477773..ec4e3196b 100644
--- a/mesalib/src/glsl/glsl_parser_extras.cpp
+++ b/mesalib/src/glsl/glsl_parser_extras.cpp
@@ -1115,7 +1115,8 @@ ast_function::print(void) const
ast_function::ast_function(void)
- : is_definition(false), signature(NULL)
+ : return_type(NULL), identifier(NULL), is_definition(false),
+ signature(NULL)
{
/* empty */
}