I don't think that it is a bug. The **import** keyword is designed to be used with Nim symbols, not with directly emitted C code. It might be just a side effect that your code with **import** worked.
Probably, it will be a better solution to use the _header_ pragma instead of including whole header into the Nim source.
