[gobject-introspection] girepository: Fix compatibility typedefs



commit fb6979ec7555bba02ebf80cb8756ae274759ac8e
Author: Colin Walters <walters verbum org>
Date:   Wed Sep 1 15:54:52 2010 -0400

    girepository: Fix compatibility typedefs

 girepository/gitypes.h |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/girepository/gitypes.h b/girepository/gitypes.h
index 2c19c6c..a356800 100644
--- a/girepository/gitypes.h
+++ b/girepository/gitypes.h
@@ -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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]