utils: Support __has_feature() macro on non-LLVM compilers by returning 0

This commit is contained in:
Martin Willi
2022-09-15 12:16:12 +02:00
committed by Tobias Brunner
parent ffada7cb5a
commit 1866d33538
+7
View File
@@ -112,6 +112,13 @@ void utils_deinit();
#define BUILD_ASSERT_ARRAY(a) \
BUILD_ASSERT(!__builtin_types_compatible_p(typeof(a), typeof(&(a)[0])))
/**
* LLVM/Clang __has_feature support
*/
#ifndef __has_feature
# define __has_feature(x) 0
#endif
/**
* Debug macro to follow control flow
*/