added _Bool in bit-fields
This commit is contained in:
1
tcc.c
1
tcc.c
@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user