www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2004/05/01/15:22:43

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

<HTML><FONT FACE=3Darial,helvetica><HTML><FONT  SIZE=3D3 PTSIZE=3D12 FAMILY=
=3D"SERIF" FACE=3D"Georgia" LANG=3D"0">In a message dated 5/1/2004 1:57:03 P=
M Eastern Standard Time, eliz AT gnu DOT org writes:<BR>
<BR>
<BLOCKQUOTE TYPE=3DCITE style=3D"BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT=
: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px"></FONT><FONT  COLOR=3D"#000000"=
 BACK=3D"#ffffff" style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D2 PTSIZE=3D10 F=
AMILY=3D"SANSSERIF" FACE=3D"Arial" LANG=3D"0">This whole pragma business is=20=
for GCC 2.7.2 and below, so one<BR>
possible solution is to condition the pragmas on those versions.<BR>
<BR>
Alternatively, we could use "#pragma pack(0)", as this is documented<BR>
to reset the packing to the default, but I'm afraid that old versions<BR>
of GCC might not support that (otherwise, why didn't we use pack(0) in<BR>
the first place?).<BR>
<BR>
Comments?<BR>
</BLOCKQUOTE><BR>
</FONT><FONT  COLOR=3D"#000000" BACK=3D"#ffffff" style=3D"BACKGROUND-COLOR:=20=
#ffffff" SIZE=3D3 PTSIZE=3D12 FAMILY=3D"SERIF" FACE=3D"Georgia" LANG=3D"0"><=
BR>
So, what works now for GCC 3.3.3?&nbsp; 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 */.<BR>
<BR>
Where is pragma pack(0) documented?<BR>
<BR>
<BR>
KB Williams</FONT></HTML>

--part1_97.475c058b.2dc55089_boundary--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019