You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
608 B

  1. --- a/protoc/CppFileGenerator.cpp
  2. +++ b/protoc/CppFileGenerator.cpp
  3. @@ -223,9 +223,9 @@
  4. printer->Print(
  5. "namespace {\n"
  6. "\n"
  7. - "GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);\n"
  8. + "::google::protobuf::internal::once_flag protobuf_AssignDescriptors_once_;\n"
  9. "inline void protobuf_AssignDescriptorsOnce() {\n"
  10. - " ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,"
  11. + " ::google::protobuf::internal::call_once(protobuf_AssignDescriptors_once_,"
  12. "\n"
  13. " &$assigndescriptorsname$);\n"
  14. "}\n"