I am working on a third-party module wrapper. I hope my main header file does not have any third-party related header files. Every parameter type and return type are opaque by only declaring it. But there is a anonymous structure defined like the following:
typedef struct {
int x;
int y;
int width;
int height;
} IppiPoint;
I cannot modify the third-party header file. I have no idea to declare it. Here are what I tried and error messages I got
1.
struct IppiPoint;
error C2371: 'IppiPoint' : redefinition; different basic types
2.
typedef struct IppiPoint;
... warning C4091: 'typedef ' : ignored on left of 'IppiPoint' when no variable is declared
... error C2371: 'IppiPoint' : redefinition; different basic types
How do I declare such anonymous struct?