소스 검색

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