From ffdc28a85c2563e3c80f44d6a04a2922c7e3b26f Mon Sep 17 00:00:00 2001 From: Aaron Green Date: Wed, 22 May 2024 18:50:52 +0000 Subject: [PATCH] pw_preprocessor: Remove PW_HAVE_FEATURE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CL 210816 removed the only use of this macro. Bug: 341975367 Change-Id: I081a34ad3cb0d7e0a9321350f56f4abda0b29e04 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/211016 Lint: Lint 🤖 Presubmit-Verified: CQ Bot Account Reviewed-by: Ted Pudlik Commit-Queue: Aaron Green --- pw_preprocessor/public/pw_preprocessor/compiler.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/pw_preprocessor/public/pw_preprocessor/compiler.h b/pw_preprocessor/public/pw_preprocessor/compiler.h index 7ad892657..8a048b968 100644 --- a/pw_preprocessor/public/pw_preprocessor/compiler.h +++ b/pw_preprocessor/public/pw_preprocessor/compiler.h @@ -129,15 +129,6 @@ #define PW_NO_SANITIZE(check) #endif // __clang__ -/// Wrapper around `__has_feature`, which is defined by GCC and Clang and -/// evaluates to a non zero constant integer if the feature is supported -/// standardized in the current language standard or 0 if not. -#ifdef __has_feature -#define PW_HAVE_FEATURE(x) __has_feature(x) -#else -#define PW_HAVE_FEATURE(x) 0 -#endif // __has_feature - /// Wrapper around `__has_attribute`, which is defined by GCC 5+ and Clang and /// evaluates to a non zero constant integer if the attribute is supported or 0 /// if not.