From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 22539 invoked from network); 21 Nov 1998 20:48:27 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 21 Nov 1998 20:48:27 -0000 Received: from delta.ds2.pg.gda.pl (macro@delta.ds2.pg.gda.pl [153.19.170.1]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id PAA02914 for ; Sat, 21 Nov 1998 15:48:19 -0500 Received: from localhost (macro@localhost) by delta.ds2.pg.gda.pl (8.8.8/8.8.8) with SMTP id VAA14823 for ; Sat, 21 Nov 1998 21:47:28 +0100 (MET) Date: Sat, 21 Nov 1998 21:47:28 +0100 (MET) From: "Maciej W. Rozycki" To: axp-list@redhat.com Subject: Re: Writing portable Code for Glibc and 32/64 bit In-Reply-To: Message-ID: Organization: Technical University of Gdansk MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII > > > 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 +