glsl: Define isnormal and copysign for MSVC to fix build.
authorVinson Lee <vlee@freedesktop.org>
Sun, 22 Sep 2013 23:08:26 +0000 (16:08 -0700)
committerVinson Lee <vlee@freedesktop.org>
Sun, 22 Sep 2013 23:11:36 +0000 (16:11 -0700)
commit6d29db715b8d60718ada1ab8ad19d969cac43caf
tree72f8dc8f313c88ad1a36d68675514aa4bbe3db2d
parent6016dabfa24271af28bd2a5525476060c1efe1c3
glsl: Define isnormal and copysign for MSVC to fix build.

This patch fixes these MSVC build errors.

ir_constant_expression.cpp
src\glsl\ir_constant_expression.cpp(564) : warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
src\glsl\ir_constant_expression.cpp(1384) : error C3861: 'isnormal': identifier not found
src\glsl\ir_constant_expression.cpp(1385) : error C3861: 'copysign': identifier not found

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=69541
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Acked-by: Matt Turner <mattst88@gmail.com>
src/glsl/ir_constant_expression.cpp