Determine GMP version

Sisyphus sisyphus1 at
Sun Apr 9 11:35:09 CEST 2006


Is there a preprocessor command that will determine the version of the GMP
library ? This could be useful if we want to use mpz_combit and/or
mpz_rootrem (which are new in 4.2):

#ifdef symbolThatSpecifies4.2
// we can code using mpz_combit and mpz_rootrem
// we need to code using a workaround


More information about the gmp-discuss mailing list