forked from AuroraMiddleware/gtk
Merge branch 'check-for-sincosf' into 'master'
gsk/gsktransform.c: Fix building on non-GCC See merge request GNOME/gtk!1291
This commit is contained in:
commit
0582a4ef1b
@ -712,7 +712,15 @@ _sincos (float deg,
|
||||
}
|
||||
else
|
||||
{
|
||||
sincosf (deg * M_PI / 180.0, out_s, out_c);
|
||||
float angle = deg * M_PI / 180.0;
|
||||
|
||||
#ifdef HAVE_SINCOSF
|
||||
sincosf (angle, out_s, out_c);
|
||||
#else
|
||||
*out_s = sinf (angle);
|
||||
*out_c = cosf (angle);
|
||||
#endif
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -198,6 +198,7 @@ check_functions = [
|
||||
'log2',
|
||||
'exp2',
|
||||
'sincos',
|
||||
'sincosf',
|
||||
]
|
||||
|
||||
foreach func : check_functions
|
||||
|
Loading…
Reference in New Issue
Block a user