Преглед на файлове

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

kenton@google.com преди 16 години
родител
ревизия
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;
   };