sercantutar / infint

Arbitrary-Precision Integer Arithmetic
http://sercantutar.github.io/infint/
201 stars 49 forks source link

add stdint.h #19

Open eendebakpt opened 6 years ago

eendebakpt commented 6 years ago

@sercantutar For gcc the div_t structure should be included from stdint.h.

eendebakpt commented 6 years ago

@sercantutar This PR solves the issue for some platforms, but not all. In my code I changed all occurences of lldiv_t with mylldiv_t and added the code

// not all platforms support lldiv_t, so we define our own 
typedef struct _my_lldiv_t
{
    long long quot;
    long long rem;
} my_lldiv_t;

to the top if InfInt.h.