diff options
author | Abseil Team <absl-team@google.com> | 2023-10-09 07:12:13 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-10-09 07:14:47 -0700 |
commit | 5dc0e78af1c2781644a350d36ae37f0c21e579fe (patch) | |
tree | ef67648466289eb4037de8144e68b45a0609f9c5 /absl/base | |
parent | 4335b3f8b1b74a0ae7c709a7c3fe3b1c01bb52cb (diff) |
ABSL_INTERNAL_HAS_CXA_DEMANGLE: Check __GNUC__ is defined.
PiperOrigin-RevId: 571929102
Change-Id: I8fb907d047a4ff3bb42e7c7f99454fa687b8f1c9
Diffstat (limited to 'absl/base')
-rw-r--r-- | absl/base/config.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/absl/base/config.h b/absl/base/config.h index 52d42f0f..b0e7fe8b 100644 --- a/absl/base/config.h +++ b/absl/base/config.h @@ -870,7 +870,8 @@ static_assert(ABSL_INTERNAL_INLINE_NAMESPACE_STR[0] != 'h' || #error ABSL_INTERNAL_HAS_CXA_DEMANGLE cannot be directly set #elif defined(OS_ANDROID) && (defined(__i386__) || defined(__x86_64__)) #define ABSL_INTERNAL_HAS_CXA_DEMANGLE 0 -#elif (__GNUC__ >= 4 || (__GNUC__ >= 3 && __GNUC_MINOR__ >= 4)) && \ +#elif defined(__GNUC__) && defined(__GNUC_MINOR__) && \ + (__GNUC__ >= 4 || (__GNUC__ >= 3 && __GNUC_MINOR__ >= 4)) && \ !defined(__mips__) #define ABSL_INTERNAL_HAS_CXA_DEMANGLE 1 #elif defined(__clang__) && !defined(_MSC_VER) |