From 3a65ef3fca7ef17d77d53acbcbfa42f596e894d6 Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Mon, 18 Nov 2024 16:26:06 +0300 Subject: [PATCH] mhd_sys_options: alternative compiler trick --- src/incl_priv/mhd_sys_options.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/incl_priv/mhd_sys_options.h b/src/incl_priv/mhd_sys_options.h index f6ded1b4..6372cb57 100644 --- a/src/incl_priv/mhd_sys_options.h +++ b/src/incl_priv/mhd_sys_options.h @@ -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