diff --git a/protoc-c/c_file.cc b/protoc-c/c_file.cc index 9851768..0f1d770 100644 --- a/protoc-c/c_file.cc +++ b/protoc-c/c_file.cc @@ -120,9 +120,11 @@ void FileGenerator::GenerateHeader(io::Printer* printer) { string filename_identifier = FilenameIdentifier(file_->name()); int min_header_version = 1000000; +#if defined(HAVE_PROTO3) if (file_->syntax() == FileDescriptor::SYNTAX_PROTO3) { min_header_version = 1003000; } +#endif // Generate top of header. printer->Print(