complibs/mpc: fix MPC 0.8.1 build with MPFR 3.0.0
authorArnaud Lacombe <lacombar@gmail.com>
Thu Aug 05 17:59:51 2010 +0200 (2010-08-05)
changeset 2069366bd2b22675
parent 2068 581a2778ca6f
child 2070 bcd33fce4db9
complibs/mpc: fix MPC 0.8.1 build with MPFR 3.0.0

This is the change introduced by revision 734 of MPC repository.

Author: Paul Zimmermann <Paul.Zimmermann@loria.fr>
Revision log: [acos.c] fixed problem with GMP_RNDA (should be MPFR_RNDA, and code was wrong)

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
patches/mpc/0.8.1/100-fix-build-with-mpfr-3_0_9.diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/mpc/0.8.1/100-fix-build-with-mpfr-3_0_9.diff	Thu Aug 05 17:59:51 2010 +0200
     1.3 @@ -0,0 +1,14 @@
     1.4 +--- trunk/src/acos.c	2009/12/08 16:49:43	733
     1.5 ++++ trunk/src/acos.c	2009/12/09 20:51:38	734
     1.6 +@@ -188,10 +188,7 @@
     1.7 +   else
     1.8 +     rnd_im = rnd_im == GMP_RNDU ? GMP_RNDD
     1.9 +       : rnd_im == GMP_RNDD ? GMP_RNDU
    1.10 +-#if MPFR_VERSION_MAJOR >= 3
    1.11 +-      : rnd_im == GMP_RNDA ? GMP_RNDZ
    1.12 +-#endif
    1.13 +-      : rnd_im;
    1.14 ++      : rnd_im; /* both RNDZ and RNDA map to themselves for -asin(z) */
    1.15 +   rnd1 = RNDC(GMP_RNDN, rnd_im);
    1.16 +   mpfr_init2 (pi_over_2, p);
    1.17 +   for (;;)