added _Bool in bit-fields

This commit is contained in:
bellard 2004-10-27 21:42:06 +00:00
parent c9c05ca5f0
commit 6b52984ce4

1
tcc.c
View file

@ -6371,6 +6371,7 @@ static void struct_decl(CType *type, int u)
if (bt != VT_INT && if (bt != VT_INT &&
bt != VT_BYTE && bt != VT_BYTE &&
bt != VT_SHORT && bt != VT_SHORT &&
bt != VT_BOOL &&
bt != VT_ENUM) bt != VT_ENUM)
error("bitfields must have scalar type"); error("bitfields must have scalar type");
bsize = size * 8; bsize = size * 8;