1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
From: Stephane Glondu <steph@glondu.net>
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 <assert.h>
-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)
|