mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 23:48:39 +01:00
ola: Fix compilation with protobuf 3.7
The protobuf 3.7 update broke ola due to API changes. Backported a few patches from upstream to deal with this. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
--- a/protoc/CppFileGenerator.cpp
|
||||
+++ b/protoc/CppFileGenerator.cpp
|
||||
@@ -223,9 +223,9 @@
|
||||
printer->Print(
|
||||
"namespace {\n"
|
||||
"\n"
|
||||
- "GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);\n"
|
||||
+ "::google::protobuf::internal::once_flag protobuf_AssignDescriptors_once_;\n"
|
||||
"inline void protobuf_AssignDescriptorsOnce() {\n"
|
||||
- " ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,"
|
||||
+ " ::google::protobuf::internal::call_once(protobuf_AssignDescriptors_once_,"
|
||||
"\n"
|
||||
" &$assigndescriptorsname$);\n"
|
||||
"}\n"
|
||||
Reference in New Issue
Block a user