protoc-c: Use FileDescriptorLegacy to obtain proto syntax version on protobuf >= 23.0
Use the newer "legacy" way of determining whether a file descriptor is using proto2 or proto3 syntax on protobuf >= 23.0. Based on https://github.com/protobuf-c/protobuf-c/pull/556/commits/66574f3fd85a205eb7c90b790477d5415364209e but continues to support older versions of protobuf. Unfortunately, since this is a "deprecated", "legacy" API it'll probably disappear in about five seconds.
Showing
Please register or sign in to comment