aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-04-23 20:13:29 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-04-25 16:05:13 +0300
commita08e765fc403d74b4ea09a5702dca14bc688dc0c (patch)
treee5aa34bd3b9a3706d4b8e6ffe6bdcf48b2703ec3 /src
parent314917828af997bcd4abe0b748a254d562f6023a (diff)
downloadlibmicrohttpd-a08e765fc403d74b4ea09a5702dca14bc688dc0c.tar.gz
libmicrohttpd-a08e765fc403d74b4ea09a5702dca14bc688dc0c.zip
mhd_bithelpers: minor improvement of internal macros
Diffstat (limited to 'src')
-rw-r--r--src/microhttpd/mhd_bithelpers.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/microhttpd/mhd_bithelpers.h b/src/microhttpd/mhd_bithelpers.h
index ed0c2e0c..eddd67f0 100644
--- a/src/microhttpd/mhd_bithelpers.h
+++ b/src/microhttpd/mhd_bithelpers.h
@@ -42,6 +42,7 @@
42#ifndef __has_builtin 42#ifndef __has_builtin
43/* Avoid precompiler errors with non-clang */ 43/* Avoid precompiler errors with non-clang */
44# define __has_builtin(x) 0 44# define __has_builtin(x) 0
45# define _MHD_has_builtin_dummy 1
45#endif 46#endif
46 47
47 48
@@ -328,5 +329,10 @@ _MHD_ROTL32 (uint32_t value32, int bits)
328 329
329#endif /* ! __builtin_rotateleft32 */ 330#endif /* ! __builtin_rotateleft32 */
330 331
332#ifdef _MHD_has_builtin_dummy
333/* Remove macro function replacement to avoid misdetection in files which
334 * include this header */
335# undef __has_builtin
336#endif
331 337
332#endif /* ! MHD_BITHELPERS_H */ 338#endif /* ! MHD_BITHELPERS_H */