diff options
author | Abseil Team <absl-team@google.com> | 2020-12-14 08:53:54 -0800 |
---|---|---|
committer | Mark Barolak <mbar@google.com> | 2020-12-14 13:16:42 -0500 |
commit | 52acfe6fc6b8bb9b1b7854993dd0fb33f0f3c4af (patch) | |
tree | dffd40cf776d2e0e319a1910838a7ee7606958dd /absl/base/attributes.h | |
parent | 1918ad2ae38aa32c74b558b322479a8efdd76363 (diff) |
Export of internal Abseil changes
--
751781aa5b9e998f84a8a7e00789c80d3338730e by Abseil Team <absl-team@google.com>:
Fix attributes.h compilation with -Wundef flag in C
PiperOrigin-RevId: 347394915
--
66070a8166b0e1a61236b954d07fbb378f4f990b by Abseil Team <absl-team@google.com>:
Revert the usage of variant<> in Cord iterator and reader.
The introduction of the variant may lead to some missed compiler optimizations.
PiperOrigin-RevId: 347384869
GitOrigin-RevId: 751781aa5b9e998f84a8a7e00789c80d3338730e
Change-Id: Ibf1190d498a6f968f2ea9b89467ccfb5224dafa8
Diffstat (limited to 'absl/base/attributes.h')
-rw-r--r-- | absl/base/attributes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/base/attributes.h b/absl/base/attributes.h index f1d3cfe4..0ba1e7da 100644 --- a/absl/base/attributes.h +++ b/absl/base/attributes.h @@ -646,7 +646,7 @@ // Every usage of a deprecated entity will trigger a warning when compiled with // clang's `-Wdeprecated-declarations` option. This option is turned off by // default, but the warnings will be reported by clang-tidy. -#if defined(__clang__) && __cplusplus >= 201103L +#if defined(__clang__) && defined(__cplusplus) && __cplusplus >= 201103L #define ABSL_DEPRECATED(message) __attribute__((deprecated(message))) #endif |