C Nieznana nazwa typu „moja_struktura”
Mam ten kod:
main.h
#ifndef MAINH
#define MAINH
...
#include "my_struct.h"
void some_func(my_structure *x);
...
#endif
i
my_struct.h
#ifndef UTILSH
#define UTILSH
...
#include "main.h"
...
typedef struct abcd {
int a;
} my_structure;
...
#endif
ale dostaję to, gdy próbuję skompilować:error: unknown type name ‘my_structure’
Jakiś pomysł dlaczego?