temp...@630680e5-0e50-0410-840e-4b1c322b438d  committed 5209147

Use the nice macro to declare once-init control objects, like good little coders should. Otherwise the initialization routines never run on Mac. TODO: Investigate how this was broken.

  • Participants
  • Parent commits 54e305f
  • Branches default

Comments (0)

Files changed (2)

File src/google/protobuf/

 EncodedDescriptorDatabase* generated_database_ = NULL;
 DescriptorPool* generated_pool_ = NULL;
-GoogleOnceType generated_pool_init_;
 void DeleteGeneratedPool() {
   delete generated_database_;

File src/google/protobuf/

 typedef hash_map<pair<const MessageLite*, int>,
                  ExtensionInfo> ExtensionRegistry;
 ExtensionRegistry* registry_ = NULL;
-GoogleOnceType registry_init_;
 void DeleteRegistry() {
   delete registry_;