Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pointer to __u32 in a header file

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

like image 249
earlence Avatar asked Apr 07 '26 07:04

earlence


1 Answers

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.

like image 185
Jack Avatar answered Apr 10 '26 01:04

Jack



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!