On Mon, Apr 27, 2015 at 10:31:38AM +0200, koneu wrote:
> Add to that, non-int bit fields are a GNU extension.
You're right. It works because uint_least32_t happens to be a
typedef of unsigned int for x86_64. Changing it so that it reads:
>typedef struct {
> uint_least32_t u;
> unsigned int mode:12;
> unsigned int fg:10;
> unsigned int bg:10;
>} Glyph
Is enough to make it comply with the standard in a portable manner.
Received on Mon Apr 27 2015 - 16:51:40 CEST