diff options
author | Vinson Lee <[email protected]> | 2013-10-04 11:24:03 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2013-10-04 15:37:33 -0700 |
commit | 1349766612709a4bc15eac0780178fb01e5d18bc (patch) | |
tree | 5500e6d1d42865b057ae6015aa6108ab45b38b3e /src | |
parent | 8419c5c3ce1489222268bf840c1d165ea8bc53ce (diff) |
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/glsl/ir_constant_expression.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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 <ieeefp.h> +static int isnormal(double x) +{ + return fpclass(x) == FP_NORMAL; +} #endif #if defined(_MSC_VER) |