From 457676fb654af5c568ffa7d08cb4b40a59047eb1 Mon Sep 17 00:00:00 2001 From: John Kuras Date: Tue, 25 Dec 2018 01:56:05 -0800 Subject: [PATCH] fized gmp.h to compile with vs6 added mpz_t typedef for gmp 4.1 compatability --- gmp.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gmp.h b/gmp.h index 5e8b80a..c8642c2 100644 --- a/gmp.h +++ b/gmp.h @@ -39,11 +39,17 @@ typedef struct mp_int { mp_size sz; } MP_INT; +typedef mp_int mpz_t[1]; + +#ifdef WINDOZE +#define PROTO(x) x +#else // WINDOZE #ifdef __STDC__ #define PROTO(x) x #else #define PROTO(x) () #endif +#endif // WINDOZE void mpz_init PROTO((MP_INT *s)); void mpz_init_set PROTO((MP_INT *s, MP_INT *t));