aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/extension_set.h
diff options
context:
space:
mode:
authorGravatar kenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d>2010-01-05 22:30:28 +0000
committerGravatar kenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d>2010-01-05 22:30:28 +0000
commit2429e3a0deb0b26b8723c717555c09d14842373f (patch)
tree1771b47d66076a95fa022184b6b9d672327bec4a /src/google/protobuf/extension_set.h
parent0225b352eaa629b6fb84a445d78af6ad7740e967 (diff)
Monty Taylor claims this helps the drizzle compile for some reason.
Diffstat (limited to 'src/google/protobuf/extension_set.h')
-rw-r--r--src/google/protobuf/extension_set.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/google/protobuf/extension_set.h b/src/google/protobuf/extension_set.h
index ffacf56b..14d5d150 100644
--- a/src/google/protobuf/extension_set.h
+++ b/src/google/protobuf/extension_set.h
@@ -97,11 +97,13 @@ struct ExtensionInfo {
bool is_repeated;
bool is_packed;
+ struct EnumValidityCheck {
+ EnumValidityFuncWithArg* func;
+ const void* arg;
+ };
+
union {
- struct {
- EnumValidityFuncWithArg* func;
- const void* arg;
- } enum_validity_check;
+ EnumValidityCheck enum_validity_check;
const MessageLite* message_prototype;
};