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:48 +00:00
parent b9809741dd
commit ec413ca3a4
3 changed files with 13 additions and 7 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-01 Carl Worth <cworth@cworth.org>
* test/cairo-test.h: Add includes to get sized-integer types such

View file

@ -4,7 +4,7 @@ AC_PREREQ(2.54)
# An odd micro number indicates in-progress development, (eg. from CVS)
# An even micro number indicates a released version.
m4_define(cairo_version_major, 1)
m4_define(cairo_version_minor, 1)
m4_define(cairo_version_minor, 0)
m4_define(cairo_version_micro, 1)
AC_INIT([cairo],
@ -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,