[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: preprocessor symbol to distinguish s390, s390x?


On Tue, Aug 30, 2011 at 08:52:01PM -0500, Steve M. Robbins wrote:
> I just uploaded a fixed version of gmp that builds on s390x.
> However, I realized that both s390 and s390x use the
> same include file, gmp-s390.h.  
> In order to avoid this clash (see /usr/include/gmp.h), I need a C
> preprocessor symbol that s390x defines but s390 does not.  Perhaps
> __s390x__ ?

yep.  __s390__ is defined on both of them, __s390x__ is only defined on s390x.

Kind regards,
Philipp Kern
 .''`.  Philipp Kern                        Debian Developer
: :' :  http://philkern.de                         Stable Release Manager
`. `'   xmpp:phil@0x539.de                         Wanna-Build Admin
  `-    finger pkern/key@db.debian.org

Attachment: signature.asc
Description: Digital signature

Reply to: