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:
Timm Bäder 2020-01-08 09:27:51 +00:00
commit 0582a4ef1b
2 changed files with 10 additions and 1 deletions

View File

@ -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
}
}

View File

@ -198,6 +198,7 @@ check_functions = [
'log2',
'exp2',
'sincos',
'sincosf',
]
foreach func : check_functions