diff options
-rw-r--r-- | src/google/protobuf/stubs/port.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/stubs/port.h b/src/google/protobuf/stubs/port.h index cecefdcb..7c6e2c45 100644 --- a/src/google/protobuf/stubs/port.h +++ b/src/google/protobuf/stubs/port.h @@ -243,7 +243,7 @@ static const uint64 kuint64max = GOOGLE_ULONGLONG(0xFFFFFFFFFFFFFFFF); __has_cpp_attribute(clang::fallthrough) # define GOOGLE_FALLTHROUGH_INTENDED [[clang::fallthrough]] # endif -#elif defined(__GNUC__) && __GNUC__ > 6 +#elif defined(__GNUC__) && __GNUC__ > 6 && __cpp_attributes >= 200809 # define GOOGLE_FALLTHROUGH_INTENDED [[gnu::fallthrough]] #endif |