This is not the place to learn beginning programming ... but, just to expedite things a bit:
The compiler is NOT complaining about the "union" keyword; it is complaining that REGS has an unknown size. Check your definition of REGS to make sure that it is properly defined.
Ringo