protoc-gen-c: FileGenerator::GenerateHeader(): "protoc-c" → "protobuf-c"

This commit is contained in:
Robert Edmonds
2025-01-25 22:01:37 -05:00
parent c4e17a9247
commit 5cd4d5c453

View File

@@ -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),