X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f From: Kbwms AT aol DOT com Message-ID: <97.475c058b.2dc55089@aol.com> Date: Sat, 1 May 2004 15:12:09 EDT Subject: Re: pragma pack in dir.h To: djgpp-workers AT delorie DOT com MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="part1_97.475c058b.2dc55089_boundary" X-Mailer: 8.0 for Windows sub 6021 Reply-To: djgpp-workers AT delorie DOT com --part1_97.475c058b.2dc55089_boundary Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit In a message dated 5/1/2004 1:57:03 PM Eastern Standard Time, eliz AT gnu DOT org writes: > This whole pragma business is for GCC 2.7.2 and below, so one > possible solution is to condition the pragmas on those versions. > > Alternatively, we could use "#pragma pack(0)", as this is documented > to reset the packing to the default, but I'm afraid that old versions > of GCC might not support that (otherwise, why didn't we use pack(0) in > the first place?). > > Comments? > So, what works now for GCC 3.3.3? I'm using dir.h in an ancient program written circa 1999 and the program uses #pragma pack(1) with the comment /* Kill pragmas from dir.h */. Where is pragma pack(0) documented? KB Williams --part1_97.475c058b.2dc55089_boundary Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable In a message dated 5/1/2004 1:57:03 P= M Eastern Standard Time, eliz AT gnu DOT org writes:

This whole pragma business is=20= for GCC 2.7.2 and below, so one
possible solution is to condition the pragmas on those versions.

Alternatively, we could use "#pragma pack(0)", as this is documented
to reset the packing to the default, but I'm afraid that old versions
of GCC might not support that (otherwise, why didn't we use pack(0) in
the first place?).

Comments?

<= BR> So, what works now for GCC 3.3.3?  I'm using dir.h in an ancient progra= m written circa 1999 and the program uses #pragma pack(1) with the comment /= * Kill pragmas from dir.h */.

Where is pragma pack(0) documented?


KB Williams
--part1_97.475c058b.2dc55089_boundary--