There is a similar question here Portable and safe way to add byte offset to any pointer
but all answers are starting with ptr = (SomeType*)... which means that I have to know the type of the pointer, while I want to use this macro:
#define ptradd(ptr, delta) (size_t) ptr = (size_t) ptr + (size_t) delta
ptradd(prect, offset);
it works under VC, but fails under GCC with the error lvalue required as left operand of assignment.
How can I make it work under GCC?