فهرست منبع

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;
   };