diff options
Diffstat (limited to 'absl/base/attributes.h')
-rw-r--r-- | absl/base/attributes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/absl/base/attributes.h b/absl/base/attributes.h index 34a35538..cb3f367f 100644 --- a/absl/base/attributes.h +++ b/absl/base/attributes.h @@ -695,7 +695,7 @@ // ABSL_INTERNAL_DISABLE_DEPRECATED_DECLARATION_WARNING // Baz ComputeBazFromFoo(Foo f); // ABSL_INTERNAL_RESTORE_DEPRECATED_DECLARATION_WARNING -#ifdef __GNUC__ +#if defined(__GNUC__) || defined(__clang__) // Clang also supports these GCC pragmas. #define ABSL_INTERNAL_DISABLE_DEPRECATED_DECLARATION_WARNING \ _Pragma("GCC diagnostic push") \ @@ -705,7 +705,7 @@ #else #define ABSL_INTERNAL_DISABLE_DEPRECATED_DECLARATION_WARNING #define ABSL_INTERNAL_RESTORE_DEPRECATED_DECLARATION_WARNING -#endif // __GNUC__ +#endif // defined(__GNUC__) || defined(__clang__) // ABSL_CONST_INIT // |