Hello, I have 3 header files and 1 .c file.
The .c file #includes both header files.
In the 2 header files, there are extern definitions of of a struct:
extern struct a
extern struct b
typedef int mytype;
My issue is that gcc keeps complaining about a redefinition of typedef mytype. I understand what this means since I #include types.h in both headers. I need to do this since both headers use mytype in their stucts. Is there any way around this?