Hi
I have header file in C (which cannot be changed).
GraphicsDevice. h
Now another code(which also compiles in C) assigns to open like this
dev->open = NULL_Open;
where NULL_Open is defined as
I get the error when compiled with g++
How can I make g++ ignore this error? Or better, how do i fix it?
Note, I can't change the header file code i.e
Rboolean (*open)();
must stay. Also, i would like NULL_Open to be defined as above (i.e taking a parameter)
Thank you
Saptarshi
I have header file in C (which cannot be changed).
GraphicsDevice. h
Code:
---some code--- Rboolean (*open)(); ---code continues
dev->open = NULL_Open;
where NULL_Open is defined as
Code:
static Rboolean NULL_Open(NewDevDesc *dev) {
return TRUE;
}
Code:
error: invalid conversion from 'Rboolean (*)(NewDevDesc*)' to 'Rboolean (*)()
Note, I can't change the header file code i.e
Rboolean (*open)();
must stay. Also, i would like NULL_Open to be defined as above (i.e taking a parameter)
Thank you
Saptarshi
Comment