How to get @sizeOf(c struct)

Suppose there is a type typedef struct {...} my_type defined “a.h”. After @cInclude("a.h"), compiler complains on @sizeOf(my_type):

error: expected type 'type', found '.cimport:.......'

If you get an error either cImport failed to translate the struct definition or you’re passing in the wrong argument to @sizeOf. Can you give a bit more context?

Oh, there might be some other things wrong.

I am working on embedded systems. The error is “acceptable”:

error: TODO: support C ABI for more targets.

I am going to move those definitions into Zig as a work around.