Change the pre-processor conditional to check for MPC_SET_UI_FR to avoid warning
authorNelson Ferreira <nelson.ferreira@ieee.org>
Thu, 5 Jan 2012 06:32:39 +0000 (01:32 -0500)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Thu, 5 Jan 2012 06:32:39 +0000 (01:32 -0500)
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
src/ent/ent-mpc.c
src/ent/ent-mpc.h

index e10f8a4..768bd0c 100644 (file)
@@ -76,8 +76,9 @@ static const struct lrecord_description bigc_description[] = {
        { XD_END }
 };
 
-#if ! HAVE_MPC_SET_UI_FR
+#if ! defined(HAVE_MPC_SET_UI_FR) || ! HAVE_MPC_SET_UI_FR
 #if defined(MPC_SET_X_Y)
+int mpc_set_ui_fr (mpc_t rop, unsigned long int re, mpfr_t im, mpc_rnd_t rnd);
 int mpc_set_ui_fr (mpc_t rop, unsigned long int re, mpfr_t im, mpc_rnd_t rnd)
               MPC_SET_X_Y (ui, fr, rop, re, im, rnd);
 #else
index f488ae6..3c8ed35 100644 (file)
@@ -90,7 +90,7 @@ extern bigc ent_scratch_bigc;
 
 
 /***** Bigc: basic functions *****/
-#if HAVE_MPC_INIT
+#if defined(HAVE_MPC_INIT) && HAVE_MPC_INIT
 #define bigc_init(f)                mpc_init(f)
 #else
 #define bigc_init(f)                mpc_init2((f),internal_get_precision(Qnil))