Determine GMP version
Torbjorn Granlund
tege at swox.com
Mon Apr 10 10:48:52 CEST 2006
"Sisyphus" <sisyphus1 at optusnet.com.au> writes:
Hi,
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
#else
// we need to code using a workaround
#endif
Look for "version" in the GMP manual.
--
Torbjörn
More information about the gmp-discuss
mailing list