Re: What's cooking in git.git (Dec 2013, #02; Fri, 6)
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Dec 9, 2013, 20:08 UTC
- Message-ID
- <20131209200820.GU29959@google.com>
- In-Reply-To
- <52A5CDB0.2020206@gmail.com>
Karsten Blees wrote:
> GCC supports __packed__ as of 2.3 (1992), so any other compilers > that copied the __attribute__ feature probably won't complain.
Alas, it looks like HP C doesn't support __packed__ (not that I care much about HP C):
http://h21007.www2.hp.com/portal/download/files/unprot/aCxx/Online_Help/pragmas.htm#Attributes
Maybe a macro expanding to __attribute__((aligned(1))) on the fields would work? The same macro could expand to __declspec(align(1)) in the MSVC build.
Thanks, Jonathan