Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
protobuf-c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
spbro
protobuf-c
Commits
5cd4d5c4
Commit
5cd4d5c4
authored
Jan 25, 2025
by
Robert Edmonds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
protoc-gen-c: FileGenerator::GenerateHeader(): "protoc-c" → "protobuf-c"
parent
c4e17a92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
protoc-gen-c/c_file.cc
protoc-gen-c/c_file.cc
+4
-4
No files found.
protoc-gen-c/c_file.cc
View file @
5cd4d5c4
...
@@ -134,15 +134,15 @@ void FileGenerator::GenerateHeader(google::protobuf::io::Printer* printer) {
...
@@ -134,15 +134,15 @@ void FileGenerator::GenerateHeader(google::protobuf::io::Printer* printer) {
"filename_identifier"
,
filename_identifier
);
"filename_identifier"
,
filename_identifier
);
// Verify the protobuf-c library header version is compatible with the
// 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
(
printer
->
Print
(
"#if PROTOBUF_C_VERSION_NUMBER < $min_header_version$
\n
"
"#if PROTOBUF_C_VERSION_NUMBER < $min_header_version$
\n
"
"# error This file was generated by a newer version of proto
c
-c which is "
"# error This file was generated by a newer version of proto
buf
-c which is "
"incompatible with your libprotobuf-c headers. Please update your headers.
\n
"
"incompatible with your libprotobuf-c headers. Please update your headers.
\n
"
"#elif $protoc_version$ < PROTOBUF_C_MIN_COMPILER_VERSION
\n
"
"#elif $protoc_version$ < PROTOBUF_C_MIN_COMPILER_VERSION
\n
"
"# error This file was generated by an older version of proto
c
-c which is "
"# error This file was generated by an older version of proto
buf
-c which is "
"incompatible with your libprotobuf-c headers. Please regenerate this file "
"incompatible with your libprotobuf-c headers. Please regenerate this file "
"with a newer version of proto
c
-c.
\n
"
"with a newer version of proto
buf
-c.
\n
"
"#endif
\n
"
"#endif
\n
"
"
\n
"
,
"
\n
"
,
"min_header_version"
,
SimpleItoa
(
min_header_version
),
"min_header_version"
,
SimpleItoa
(
min_header_version
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment