typedef struct A A;
typedef struct B B;

struct A { B* b; };
struct B { A* a; };