Fix for bug #4401 as reported by Tim Mooney:

Don't bother checking for sincos function.
Don't use sincos function since it is apparently buggy on some platforms, (Tru64 at least).
This commit is contained in:
Carl Worth 2005-09-12 11:11:33 +00:00
parent a1bca924b9
commit b1a38efd34
3 changed files with 12 additions and 6 deletions

View file

@ -1,3 +1,13 @@
2005-09-12 Carl Worth <cworth@cworth.org>
Fix for bug #4401 as reported by Tim Mooney:
* configure.in: Don't bother checking for sincos function.
* src/cairo-matrix.c: (cairo_matrix_init_rotate): Don't use sincos
function since it is apparently buggy on some platforms, (Tru64 at
least).
2005-09-09 Carl Worth <cworth@cworth.org>
* ROADMAP: Add two bugs to the 1.0.2 roadmap:

View file

@ -81,8 +81,6 @@ AC_CHECK_LIBM
LIBS="$LIBS $LIBM"
AC_CHECK_FUNCS(sincos)
dnl ===========================================================================
AC_ARG_ENABLE(xlib,

View file

@ -229,12 +229,10 @@ cairo_matrix_init_rotate (cairo_matrix_t *matrix,
{
double s;
double c;
#if HAVE_SINCOS
sincos (radians, &s, &c);
#else
s = sin (radians);
c = cos (radians);
#endif
cairo_matrix_init (matrix,
c, s,
-s, c,