I am attempting to use a c code which i did not write myself in tandem with my own c++ code. When I attempt to compile the c code below I get an error. I am unsure what this c code is attempting to accomplish with the .xxx format. I am at a loss any help would be appreciated.
const bmpfile_header_t bmp_fh = {
.filesz = offset + bmp_ih->bmp_bytesz,
.creator1 = 0,
.creator2 = 0,
.bmp_offset = offset
};
throws the error: missing'}' before '.'