__GMP_WITHIN_GMP error when building mpc-0.9 as dynamic library

Marc Glisse marc.glisse at inria.fr
Fri Feb 17 22:02:56 CET 2012

On Fri, 17 Feb 2012, Andreas Enge wrote:

>> In the particular case of __GMP_WITHIN_GMP and __GMP_WITHIN_GMPXX,
>> it seems that using #ifdef instead of #if would be fine.
> It looks like a safe change to me, and would not require much effort.

The comment in gmp.h next to this says:

"The two cases are differentiated by __GMP_WITHIN_GMP defined by the GMP 
Makefiles (and not defined from an application)."

So arguably #ifdef is what was meant from the start, and I pushed the 
change. TG, feel free to revert if there was a reason to keep #if...

Marc Glisse

More information about the gmp-bugs mailing list