mhd_sys_options: alternative compiler trick

This commit is contained in:
Evgeny Grin (Karlson2k)
2024-11-19 10:52:15 +03:00
parent 77e6c70f3e
commit 3a65ef3fca
+2
View File
@@ -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