aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/extension_set.cc
diff options
context:
space:
mode:
authorGravatar temporal <temporal@630680e5-0e50-0410-840e-4b1c322b438d>2009-08-01 07:30:49 +0000
committerGravatar temporal <temporal@630680e5-0e50-0410-840e-4b1c322b438d>2009-08-01 07:30:49 +0000
commitf837b0066d7118c143c0301634e1d713bb1dc893 (patch)
tree058afb16b81f56dccaa84f293c0b772c23bdc82d /src/google/protobuf/extension_set.cc
parent9270a99d2e64d08a438729522330d1f1bd1e4716 (diff)
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.
Diffstat (limited to 'src/google/protobuf/extension_set.cc')
-rw-r--r--src/google/protobuf/extension_set.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/extension_set.cc b/src/google/protobuf/extension_set.cc
index 0f799a5b..4d5eb6cc 100644
--- a/src/google/protobuf/extension_set.cc
+++ b/src/google/protobuf/extension_set.cc
@@ -76,7 +76,7 @@ struct ExtensionInfo {
typedef hash_map<pair<const MessageLite*, int>,
ExtensionInfo> ExtensionRegistry;
ExtensionRegistry* registry_ = NULL;
-GoogleOnceType registry_init_;
+GOOGLE_PROTOBUF_DECLARE_ONCE(registry_init_);
void DeleteRegistry() {
delete registry_;