mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
mhd_sys_options: alternative compiler trick
This commit is contained in:
@@ -341,6 +341,8 @@
|
||||
*/
|
||||
#ifdef HAVE_UINTPTR_T
|
||||
# define mhd_DROP_CONST(ptr) ((void *) ((uintptr_t) ((const void *) (ptr))))
|
||||
#elif defined(HAVE_INTPTR_T)
|
||||
# define mhd_DROP_CONST(ptr) ((void *) ((intptr_t) ((const void *) (ptr))))
|
||||
#else
|
||||
# define mhd_DROP_CONST(ptr) ((void *) ((const void *) (ptr)))
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user