From d602fbd861e2c3c5570b55f0839361a6f8bd32c7 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 15 Feb 2015 16:16:15 -0800 Subject: [PATCH] Avoid fighting with Solaris headers over isnormal() When compiling in C99 or C++11 modes, Solaris defines isnormal() as a macro via , which causes the function definition to become too mangled to compile. Signed-off-by: Alan Coopersmith Cc: "10.5" Reviewed-by: Emil Velikov Reviewed-by: Brian Paul --- src/glsl/ir_constant_expression.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glsl/ir_constant_expression.cpp b/src/glsl/ir_constant_expression.cpp index 1e8b3a3cced..864cb80de74 100644 --- a/src/glsl/ir_constant_expression.cpp +++ b/src/glsl/ir_constant_expression.cpp @@ -44,7 +44,7 @@ static int isnormal(double x) { return _fpclass(x) == _FPCLASS_NN || _fpclass(x) == _FPCLASS_PN; } -#elif defined(__SUNPRO_CC) +#elif defined(__SUNPRO_CC) && !defined(isnormal) #include static int isnormal(double x) { -- 2.30.2