Merge pull request #282 from protobuf-c/edmonds/proto3-bump-min_header_version

Bump minimum required header version for proto3 syntax
This commit is contained in:
Robert Edmonds 2017-07-30 22:51:25 -04:00 committed by GitHub
commit ab599cfae8

View File

@ -119,7 +119,10 @@ FileGenerator::~FileGenerator() {}
void FileGenerator::GenerateHeader(io::Printer* printer) {
string filename_identifier = FilenameIdentifier(file_->name());
static const int min_header_version = 1000000;
int min_header_version = 1000000;
if (file_->syntax() == FileDescriptor::SYNTAX_PROTO3) {
min_header_version = 1003000;
}
// Generate top of header.
printer->Print(