请教struct的用法
我的程序一段struct定义如下,可是编译的时候一直说定义有问题,全部改为如bit flag就好了,请问这个定义哪里错了!typedef struct
{
unsigned bit0 :1;
unsigned bit1 :1;
unsigned bit2 :1;
unsigned bit3 :1;
unsigned bit4 :1;
unsigned bit5 :1;
unsigned bit6 :1;
unsigned bit7 :1;
}Boot;
Boot B;
#define time_10ms_f B.bit0;
#define flag B.bit1;
#define OLDA B.bit2;
#define OLDB B.bit3;
#define OLDZ B.bit4;
#define circle B.bit5;