From: Vinson Lee Date: Fri, 4 Oct 2013 18:24:03 +0000 (-0700) Subject: glsl: Define isnormal for Oracle Solaris Studio. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1349766612709a4bc15eac0780178fb01e5d18bc;p=mesa.git glsl: Define isnormal for Oracle Solaris Studio. This patch fixes this Oracle Solaris Studio build error. "../../src/glsl/ir_constant_expression.cpp", line 1398: Error: The function "isnormal" must have a prototype. Signed-off-by: Vinson Lee --- diff --git a/src/glsl/ir_constant_expression.cpp b/src/glsl/ir_constant_expression.cpp index 12641e5df10..0efd1d5b3af 100644 --- a/src/glsl/ir_constant_expression.cpp +++ b/src/glsl/ir_constant_expression.cpp @@ -45,6 +45,12 @@ static int isnormal(double x) { return _fpclass(x) == _FPCLASS_NN || _fpclass(x) == _FPCLASS_PN; } +#elif defined(__SUNPRO_CC) +#include +static int isnormal(double x) +{ + return fpclass(x) == FP_NORMAL; +} #endif #if defined(_MSC_VER)