mirror of
https://github.com/protobuf-c/protobuf-c.git
synced 2024-12-27 13:31:02 +08:00
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:
commit
ab599cfae8
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user