I have an enum named RandomEnum in file foo.h:
// foo.h typedef enum RandomEnum { ran_1 = 0, ran_2 } RandomEnum;
In another file, bar.h, I\
The C construct enum RandomEnum does not define a type called RandomEnum — it defines a type called enum RandomEnum. To be able to write just RandomEnum for the type, you need to use a typedef.
enum RandomEnum
RandomEnum