I have following code which I guess is assigning a value to constant struct
in header file:
struct madStruct {
uint8_t code;
uint8_t cluster;
};
typedef struct madStruct MadStruct;
and in C
file
const MadStruct madStructConst = {
.code = 0x00,
.cluster = 0x01,
};
I would like to know what what does this code supposed to do?
This code does not compile in Visual Studio C++ 2010, how can I convert it so I can compile in both MingW and Visual Studio C++ 2010?