[seed] fix types which have been removed in new versions



commit 42d87d2df6e91da9526aa1adb2cba671abc3f51f
Author: Alan Knowles <alan akbkhome com>
Date:   Sat Apr 16 13:23:10 2011 +0800

    fix types which have been removed in new versions

 libseed/seed-closure.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libseed/seed-closure.c b/libseed/seed-closure.c
index c472f69..f1ce83b 100644
--- a/libseed/seed-closure.c
+++ b/libseed/seed-closure.c
@@ -77,6 +77,7 @@ seed_handle_closure (ffi_cif * cif, void *result, void **args, void *userdata)
       switch (tag)
 	{
 #if GOBJECT_INTROSPECTION_VERSION >= 0x000900
+#if GOBJECT_INTROSPECTION_VERSION < 0x001000
 	case GI_TYPE_TAG_LONG:
 	  arg->v_long = *(glong *) args[i];
 	  break;
@@ -96,6 +97,7 @@ seed_handle_closure (ffi_cif * cif, void *result, void **args, void *userdata)
 	  arg->v_uint = *(guint *) args[i];
 	  break;
 #endif
+#endif
 	case GI_TYPE_TAG_BOOLEAN:
 	  arg->v_boolean = *(gboolean *) args[i];
 	  break;
@@ -196,6 +198,7 @@ seed_handle_closure (ffi_cif * cif, void *result, void **args, void *userdata)
   switch (return_tag)
     {
 #if GOBJECT_INTROSPECTION_VERSION >= 0x000900
+#if GOBJECT_INTROSPECTION_VERSION < 0x001000
     case GI_TYPE_TAG_LONG:
       *(glong *) result = return_arg.v_long;
       break;
@@ -215,6 +218,7 @@ seed_handle_closure (ffi_cif * cif, void *result, void **args, void *userdata)
       *(guint *) result = return_arg.v_uint;
       break;
 #endif
+#endif
     case GI_TYPE_TAG_BOOLEAN:
       *(gboolean *) result = return_arg.v_boolean;
       break;



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