Opened 22 years ago

Closed 22 years ago

Last modified 5 years ago

#7917 closed patch (fixed)

GCC packing fix for new GCC releases

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


#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, 22 years ago

Resolution: fixed
Status: newclosed

comment:2 by digitall, 5 years ago

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