From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
To: axp-list@redhat.com
Subject: Re: Writing portable Code for Glibc and 32/64 bit
Date: Sat, 21 Nov 1998 21:47:28 +0100 (MET) [thread overview]
Message-ID: <Pine.GSO.3.96.981121214337.6099G-100000@delta.ds2.pg.gda.pl> (raw)
In-Reply-To: <Pine.LNX.3.96.981121203822.925A-100000@tardis.home.dave>
> > > struct frob {
> > > void *a;
> > > void *b;
> > > int x;
> > > int dummy;
> > #ifdef PTRS_ARE_64_BITS
> > void *__ignore_me;
> > #endif
> > > }
>
> Yeh - but what about the size of int's and all the possible alignment
> issues in a more general case.
Just use a union of void * and int (or whatever type you need).
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
next prev parent reply other threads:[~1998-11-21 20:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-11-21 20:12 Writing portable Code for Glibc and 32/64 bit Greg Lindahl
1998-11-21 20:40 ` Dave Gilbert
1998-11-21 20:47 ` Maciej W. Rozycki [this message]
-- strict thread matches above, loose matches on Subject: below --
1998-11-21 20:51 Greg Lindahl
1998-11-20 11:03 y0000218
1998-11-20 15:02 ` Stefan Schroepfer
1998-11-20 18:53 ` Jeff DeMaagd
1998-11-21 13:18 ` Dave Gilbert
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox