I am having this structure in a .c file:
struct entry {
int position;
int length;
struct entry *node;
};
Now, how can I limit the scope of this structure layout to the host file, so that when using the same name for a new structure layout in another file, I don't get 'redefinition' error?
I tried using static before struct, but it seems of no use (I also doesn't make sense). BTW, this question doesn't seem valid to me, as that I get 'redefinition' error when duplicating stuct entry across linked files (using MinGW).
--- Edit ---
For those who want to know more: here, and here.