#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: |
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 , 23 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 6 years ago
Component: | → Ports |
---|