Commit f3a58ed8 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-24295: Fix the non-clang build

Sorry, only tested commit 4174fc1a
on clang. Other compilers do not define __has_feature().
parent 4174fc1a
......@@ -561,6 +561,9 @@ void thread_pool_generic::worker_main(worker_data *thread_var)
Helper function, to be used inside maintenance callback,
before m_last_activity is updated
*/
#ifndef __has_feature
# define __has_feature(x) 0
#endif
#if __has_feature(memory_sanitizer)
const /* WITH_MSAN in clang++-11 does not work with constexpr */
#else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment