On Fri, Sep 20, 2013 at 6:03 PM, Vinson Lee <v...@freedesktop.org> wrote: > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=69541 > Signed-off-by: Vinson Lee <v...@freedesktop.org> > --- > src/glsl/ir_constant_expression.cpp | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/src/glsl/ir_constant_expression.cpp > b/src/glsl/ir_constant_expression.cpp > index 4579ef2..805e1f3 100644 > --- a/src/glsl/ir_constant_expression.cpp > +++ b/src/glsl/ir_constant_expression.cpp > @@ -40,6 +40,18 @@ > #include "glsl_types.h" > #include "program/hash_table.h" > > +#if defined(_MSC_VER) && (_MSC_VER < 1800) > +static int isnormal(double x) { > + return _fpclass(x) == _FPCLASS_NN || _fpclass(x) == _FPCLASS_PN; > +} > +#endif > + > +#if defined(_MSC_VER) > +static double copysign(double x, double y) { > + return _copysign(x, y); > +} > +#endif > + > static float > dot(ir_constant *op0, ir_constant *op1) > { > -- > 1.8.1.2
Thanks Vinson, Acked-by: Matt Turner <matts...@gmail.com> _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev