Build installs different "gmp.h" for 32- and 64-bit ABI's.

Vincent Lefevre vincent at vinc17.org
Tue Jun 23 14:00:25 CEST 2009


On 2009-06-23 13:49:38 +0200, Torbjorn Granlund wrote:
> Clearly, multi-ABI platforms need some provisions for handling multiple
> include files, or have a common set of include files that reliably
> detect the used ABI.

Under Mac OS X, MacPorts is able to unify the various gmp.h files,
e.g.

#ifndef __LP64__
#define GMP_LIMB_BITS                      32
#else /* __LP64__ */
#define GMP_LIMB_BITS                      64
#endif /* __LP64__ */

But IMHO, anything like that is platform-specific and may not be
always possible.

-- 
Vincent Lefèvre <vincent at vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)


More information about the gmp-bugs mailing list