ads1.2编译vc程序,出现implicit cast of pointer to non-equal pointer
我把程序从vc9移植到ads1.2上,有很多错误都是由于编译器不支持指针类型的隐式转换造成的。这个问题我是百思不得其解,不知道应该怎么强制转换...还请高手指教...
出错行:init_put_byte(*s, buffer, buffer_size,(h->flags & URL_WRONLY || h->flags & URL_RDWR), h,url_read, url_write, url_seek)
ERROR:
Error : C3028E: <argument 6 to 'init_put_byte'>: implicit cast of pointer to non-equal pointer
aviobuf.c line 556
Error : C3028E: <argument 7 to 'init_put_byte'>: implicit cast of pointer to non-equal pointer
aviobuf.c line 556
Error : C3028E: <argument 8 to 'init_put_byte'>: implicit cast of pointer to non-equal pointer
函数定义:
int init_put_byte(ByteIOContext *s,unsigned char *buffer,int buffer_size,int write_flag,void *opaque,
int (*read_packet)(void *opaque, uint8_t *buf, int buf_size),
int (*write_packet)(void *opaque, uint8_t *buf, int buf_size),
int64_t (*seek)(void *opaque, int64_t offset, int whence))