From: Stephane Glondu Date: Thu, 13 Aug 2020 06:58:09 +0200 Subject: Fix compilation with gcc-10 Bug-Debian: https://bugs.debian.org/957548 --- conversions.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/conversions.c b/conversions.c index 1150507..b57abd1 100644 --- a/conversions.c +++ b/conversions.c @@ -32,7 +32,7 @@ #include -struct custom_operations _mlgmp_custom_z; +extern struct custom_operations _mlgmp_custom_z; static inline gmp_randstate_t *randstate_val(value val) { @@ -67,7 +67,7 @@ static inline value alloc_init_mpz (void) #pragma inline(Int_option_val, mpz_val, alloc_mpz, alloc_init_mpz) -struct custom_operations _mlgmp_custom_q; +extern struct custom_operations _mlgmp_custom_q; static inline mpq_t * mpq_val (value val) { @@ -92,7 +92,7 @@ static inline value alloc_init_mpq (void) #pragma inline(mpq_val, alloc_mpq, alloc_init_mpq) -struct custom_operations _mlgmp_custom_f; +extern struct custom_operations _mlgmp_custom_f; static inline mpf_t * mpf_val (value val) { @@ -115,7 +115,7 @@ static inline value alloc_init_mpf (value prec) } -struct custom_operations _mlgmp_custom_fr; +extern struct custom_operations _mlgmp_custom_fr; #ifdef USE_MPFR static inline mpfr_t * mpfr_val (value val)