Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions protoc/CppFileGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ void FileGenerator::GenerateBuildDescriptors(Printer* printer) {
"assigndescriptorsname", GlobalAssignDescriptorsName(m_output_name));
printer->Indent();

// No longer needed since protobuf 3.7
#if GOOGLE_PROTOBUF_VERSION < 3007000
// No longer needed since protobuf 3.2
#if GOOGLE_PROTOBUF_VERSION < 3002000
// Make sure the file has found its way into the pool. If a descriptor
// is requested *during* static init then AddDescriptors() may not have
// been called yet, so we call it manually. Note that it's fine if
Expand Down
4 changes: 2 additions & 2 deletions protoc/GeneratorHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ string FilenameIdentifier(const string& filename) {
return result;
}

// No longer needed since protobuf 3.7
#if GOOGLE_PROTOBUF_VERSION < 3007000
// No longer needed since protobuf 3.2
#if GOOGLE_PROTOBUF_VERSION < 3002000
// Return the name of the AddDescriptors() function for a given file.
string GlobalAddDescriptorsName(const string& filename) {
return "protobuf_AddDesc_" + FilenameIdentifier(filename);
Expand Down
4 changes: 2 additions & 2 deletions protoc/GeneratorHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ string StripProto(const string& filename);
// Convert a file name into a valid identifier.
string FilenameIdentifier(const string& filename);

// No longer needed since protobuf 3.7
#if GOOGLE_PROTOBUF_VERSION < 3007000
// No longer needed since protobuf 3.2
#if GOOGLE_PROTOBUF_VERSION < 3002000
// Return the name of the AddDescriptors() function for a given file.
string GlobalAddDescriptorsName(const string& filename);
#endif
Expand Down