I'm trying to integrate an existing library into my project. But I keep getting this "Redefinition typedef error" when I try to compile. Here's the code that's part of the library.
Code:
typedef struct _tagAbc Abc;
typedef void *Apple (Abc* Orange);
typedef struct _tagAbc
{
Apple red;
}
Abc;
It seems that the compiler doesn't like the pre-declared struct and the actual definition of the struct together. Is there anywhere to fix this problem?