summaryrefslogtreecommitdiff
path: root/girepository
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-09-01 15:54:52 -0400
committerColin Walters <walters@verbum.org>2010-09-01 15:54:52 -0400
commitfb6979ec7555bba02ebf80cb8756ae274759ac8e (patch)
tree3dbe29c7fb024ddb83d951a13abd35979a5ca34b /girepository
parentd564c3b1d6fc48c99bfba57d2c0d567daf9f8a8f (diff)
girepository: Fix compatibility typedefs
Diffstat (limited to 'girepository')
-rw-r--r--girepository/gitypes.h9
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