aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/extension_set.h
diff options
context:
space:
mode:
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;
};