Skip to content

Commit

Permalink
fized gmp.h to compile with vs6
Browse files Browse the repository at this point in the history
added mpz_t typedef for gmp 4.1 compatability
  • Loading branch information
dad98253 committed Dec 25, 2018
1 parent 9c22989 commit 457676f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 457676f

Please sign in to comment.