The BSD solution to this problem is __DECONST(), a macro which basically casts through `uintptr_t`.
#define __DECONST(type, var) ((type)(uintptr_t)(const void*)(var)) #define __DECONST(type, var) ((type)(uintptr_t)(const void*)(var))No comments yet.