From 1349766612709a4bc15eac0780178fb01e5d18bc Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Fri, 4 Oct 2013 11:24:03 -0700 Subject: [PATCH] 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 --- src/glsl/ir_constant_expression.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- 2.30.2