diff options
Diffstat (limited to 'gsk/gsktransform.c')
-rw-r--r-- | gsk/gsktransform.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gsk/gsktransform.c b/gsk/gsktransform.c index 3f944db9ea..388dad5b45 100644 --- a/gsk/gsktransform.c +++ b/gsk/gsktransform.c @@ -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 + } } |