mpc 0.9 fixes some near-infinite loops.
Currently, we support < 0.9 versions as well. But once 0.9 hits all
major operating systems/package managers, we will get rid of the
Thanks to asau@ for updating mpc in pkgsrc.
#ifndef __SUBR_MPC_H__
#define __SUBR_MPC_H__
+#if MPC_VERSION_MINOR == 0 && MPC_VERSION_MAJOR < 9
double complex mpc_get_dc(mpc_t op, mpfr_rnd_t rnd);
long double complex mpc_get_ldc(mpc_t op, mpfr_rnd_t rnd);
+#endif
#endif /* ! __SUBR_MPC_H__ */
#include "mytypes.h"
#include "subr_mpc.h"
+#if MPC_VERSION_MAJOR == 0 && MPC_VERSION_MINOR < 9
double complex
mpc_get_dc(mpc_t op, mpfr_rnd_t rnd)
{
return (z.z);
}
+#endif