mirror of
https://github.com/protobuf-c/protobuf-c.git
synced 2026-01-17 21:31:18 +01:00
protoc-gen-c: FileGenerator::GenerateHeader(): "protoc-c" → "protobuf-c"
This commit is contained in:
@@ -134,15 +134,15 @@ void FileGenerator::GenerateHeader(google::protobuf::io::Printer* printer) {
|
||||
"filename_identifier", filename_identifier);
|
||||
|
||||
// Verify the protobuf-c library header version is compatible with the
|
||||
// protoc-c version before going any further.
|
||||
// protoc-gen-c version before going any further.
|
||||
printer->Print(
|
||||
"#if PROTOBUF_C_VERSION_NUMBER < $min_header_version$\n"
|
||||
"# error This file was generated by a newer version of protoc-c which is "
|
||||
"# error This file was generated by a newer version of protobuf-c which is "
|
||||
"incompatible with your libprotobuf-c headers. Please update your headers.\n"
|
||||
"#elif $protoc_version$ < PROTOBUF_C_MIN_COMPILER_VERSION\n"
|
||||
"# error This file was generated by an older version of protoc-c which is "
|
||||
"# error This file was generated by an older version of protobuf-c which is "
|
||||
"incompatible with your libprotobuf-c headers. Please regenerate this file "
|
||||
"with a newer version of protoc-c.\n"
|
||||
"with a newer version of protobuf-c.\n"
|
||||
"#endif\n"
|
||||
"\n",
|
||||
"min_header_version", SimpleItoa(min_header_version),
|
||||
|
||||
Reference in New Issue
Block a user