girepository: Fix compatibility typedefs
authorColin Walters <walters@verbum.org>
Wed, 1 Sep 2010 19:54:52 +0000 (15:54 -0400)
committerColin Walters <walters@verbum.org>
Wed, 1 Sep 2010 19:54:52 +0000 (15:54 -0400)
girepository/gitypes.h

index 2c19c6c78e7b29e9b91f8cc5160128e494f34f76..a356800cae65255df1216399427b6ffbf60c4451 100644 (file)
@@ -164,7 +164,7 @@ typedef GIBaseInfo GIErrorDomainInfo;
  */
 typedef struct _GIUnresolvedInfo GIUnresolvedInfo;
 
-typedef union
+union _GIArgument
 {
   gboolean v_boolean;
   gint8    v_int8;
@@ -187,7 +187,8 @@ typedef union
   gsize    v_size;
   gchar *  v_string;
   gpointer v_pointer;
-} GIArgument;
+};
+typedef union _GIArgument GIArgument;
 
 /**
  * GIInfoType:
@@ -440,8 +441,8 @@ typedef enum
 
 #ifndef __GI_SCANNER__
 /* backwards compatibility */
-typedef union GIArgument GArgument;
-typedef union GITypelib GTypelib;
+typedef union _GIArgument GArgument;
+typedef struct _GITypelib GTypelib;
 #endif
 
 G_END_DECLS