Discussion:
preprocessor symbol to distinguish s390, s390x?
(too old to reply)
Steve M. Robbins
2011-08-31 02:00:01 UTC
Permalink
Hi,

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__ ?

Thanks,
-Steve
Philipp Kern
2011-08-31 11:00:01 UTC
Permalink
Hi,
Post by Steve M. Robbins
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:***@0x539.de Wanna-Build Admin
`- finger pkern/***@db.debian.org
Loading...