Skip to content

Commit

Permalink
Merge pull request #2830 from wasphin/feature/protobuf-v29
Browse files Browse the repository at this point in the history
  • Loading branch information
lorinlee authored Nov 30, 2024
2 parents b82f2b8 + 8d1ee6d commit 065f797
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/brpc/nonreflectable_message.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ class NonreflectableMessage : public ::google::protobuf::Message {
return *this;
}

#if GOOGLE_PROTOBUF_VERSION >= 5026000
#if GOOGLE_PROTOBUF_VERSION >= 5029000
const ::google::protobuf::internal::ClassData* GetClassData() const override {
return nullptr;
}
#elif GOOGLE_PROTOBUF_VERSION >= 5026000
const ClassData* GetClassData() const override {
return nullptr;
}
Expand All @@ -63,7 +67,7 @@ class NonreflectableMessage : public ::google::protobuf::Message {
}
#endif

#if GOOGLE_PROTOBUF_VERSION >= 3000000
#if GOOGLE_PROTOBUF_VERSION >= 3000000 && GOOGLE_PROTOBUF_VERSION < 5029000
Message* New(::google::protobuf::Arena* arena) const override {
return ::google::protobuf::Arena::Create<T>(arena);
}
Expand Down

0 comments on commit 065f797

Please sign in to comment.