mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-18 19:28:24 +02:00
Avoid fighting with Solaris headers over isnormal()
When compiling in C99 or C++11 modes, Solaris defines isnormal() as
a macro via <math.h>, which causes the function definition to become
too mangled to compile.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Cc: "10.5" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
(cherry picked from commit d602fbd861)
This commit is contained in:
parent
4fa129cd9b
commit
c65ca6c815
1 changed files with 1 additions and 1 deletions
|
|
@ -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 <ieeefp.h>
|
||||
static int isnormal(double x)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue