Subject: Re: What's cooking in git.git (Dec 2013, #02; Fri, 6)

From: Jonathan Nieder <[email-masked]>
Date: Mon, 9 Dec 2013 12:08:20 -0800

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