瀏覽代碼

Monty Taylor claims this helps the drizzle compile for some reason.

kenton@google.com 15 年之前
父節點
當前提交
2429e3a0de
共有 1 個文件被更改,包括 6 次插入4 次删除
  1. 6 4
      src/google/protobuf/extension_set.h

+ 6 - 4
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;
   };