Y
Hacker News
new
|
ask
|
show
|
jobs
by
anonymouscowar1
4576 days ago
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))