What I\'ve written is:
typedef enum _MyStatus { MY_STATUS_OK = 0, MY_STATUS_GENERAL_ERROR = -1, } MyStatus; typedef MyStatus (*MyCallback)(MySettings *
How about putting this line at the top:
typedef struct _MySettings MySettings;
This C FAQ: How can I define a pair of mutually referential structures? might be of use.