/** * This is the good way to define a struct ... or really any typedef * Basically this ensures that the typedef is only done once. * * @author gtowell * Created: April 6, 2021 * **/ #include "a.h" #ifndef TYPE_B_DEFINED typedef struct { A oneA; } B; #define TYPE_B_DEFINED 1 #endif