commit a08e765fc403d74b4ea09a5702dca14bc688dc0c parent 314917828af997bcd4abe0b748a254d562f6023a Author: Evgeny Grin (Karlson2k) <k2k@narod.ru> Date: Sat, 23 Apr 2022 20:13:29 +0300 mhd_bithelpers: minor improvement of internal macros Diffstat:
| M | src/microhttpd/mhd_bithelpers.h | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/microhttpd/mhd_bithelpers.h b/src/microhttpd/mhd_bithelpers.h @@ -42,6 +42,7 @@ #ifndef __has_builtin /* Avoid precompiler errors with non-clang */ # define __has_builtin(x) 0 +# define _MHD_has_builtin_dummy 1 #endif @@ -328,5 +329,10 @@ _MHD_ROTL32 (uint32_t value32, int bits) #endif /* ! __builtin_rotateleft32 */ +#ifdef _MHD_has_builtin_dummy +/* Remove macro function replacement to avoid misdetection in files which + * include this header */ +# undef __has_builtin +#endif #endif /* ! MHD_BITHELPERS_H */