Refer to https://gcc.gnu.org/onlinedocs/cpp/_005f_005fhas_005ffeature.html
and https://clang.llvm.org/docs/LanguageExtensions.html#has-feature-and-has-extension
for further information
Fixes: https://tracker.ceph.com/issues/65673
Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
}
#if GTEST_HAS_DEATH_TEST && !defined(_WIN32)
+
+#ifndef __has_feature
+#define __has_feature(x) 0
+#endif
+
TEST_F(ForkDeathTest, MD5) {
#if __has_feature(address_sanitizer) || defined(__SANITIZE_ADDRESS__)
// sanitizer warns like: