I need to pass a pointer like so
extern int Si4709_dev_chan_get(__u32 *);
but gcc complaints about missing brackets.
Si4709_dev.h:130: error: expected ‘)’ before ‘*’ token
any ideas on what I can do?
-Earlence
Maybe you need to include the header that contains the typedef for __u32, this is usually <asm/types.h> or <sys/types.h>.
In anycase they shouldn't be portable, you should rely on something that is more likely to be portable like uint32_t which should be standard for C99 conform implementations (and it should be in stdint.h.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With