Opened 18 years ago

Closed 18 years ago

Last modified 12 months ago

#7917 closed patch (fixed)

GCC packing fix for new GCC releases

Reported by: SF/bbrox Owned by:
Priority: normal Component: Ports
Keywords: Cc:
Game:

Description

#pragma pack does not work anymore with recent GCC
releases.

Thus update all structures needing to be packed with a
'GCC_PACKED' define that will be left undefined for
non-GCC builds and set to '__attribute__((packed))' for
GCC.

Note that I also changed the values for START / END
packing for the Cygwin build because I suppose that it
also uses GCC. In that case, it's not 100 % needed as
(AFAIK) all GCC builds for Windows support the pack
push / pop #pragma for compatibility reasons with
Windows's headers.
So if this part of the patch causes problem, it can be
removed.

Ticket imported from: #481016. Ticket imported from: patches/22.

Change History (2)

comment:1 by SF/strigeus, 18 years ago

Resolution: fixed
Status: newclosed

comment:2 by digitall, 12 months ago

Component: Ports
Note: See TracTickets for help on using tickets.