M
Michael B Allen
I have a forward reference like:
struct foo;
int some_fn(struct foo *param);
Because the parameter is a pointer the compiler is satisfied.
But now I wan to change 'struct foo' to a typedef'd type like 'foo_t'. The
following all fail to compile:
foo_t;
typedef foo_t;
typedef struct foo_t;
Is there any way to declare a forward refernce for a tyepdef'd type?
Thanks,
Mike
struct foo;
int some_fn(struct foo *param);
Because the parameter is a pointer the compiler is satisfied.
But now I wan to change 'struct foo' to a typedef'd type like 'foo_t'. The
following all fail to compile:
foo_t;
typedef foo_t;
typedef struct foo_t;
Is there any way to declare a forward refernce for a tyepdef'd type?
Thanks,
Mike