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



commit a9cfd171875515aba2d43b90d8b260a0dd678fa1
Author: Alan Knowles <alan akbkhome com>
Date:   Sat Apr 16 13:31:28 2011 +0800

    fix types which have been removed in new versions

 libseed/seed-types.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/libseed/seed-types.c b/libseed/seed-types.c
index 121b277..228d2f8 100644
--- a/libseed/seed-types.c
+++ b/libseed/seed-types.c
@@ -391,8 +391,10 @@ seed_gi_make_array (JSContextRef ctx,
       break;
 
 #if GOBJECT_INTROSPECTION_VERSION >= 0x000900
+#if GOBJECT_INTROSPECTION_VERSION < 0x001000
     case GI_TYPE_TAG_INT:
 #endif
+#endif
     case GI_TYPE_TAG_INT32:
       {
 	gint *intresult;
@@ -518,6 +520,7 @@ seed_value_to_gi_argument (JSContextRef ctx,
       break;
 
 #if GOBJECT_INTROSPECTION_VERSION >= 0x000900
+#if GOBJECT_INTROSPECTION_VERSION < 0x001000
     case GI_TYPE_TAG_LONG:
       arg->v_long = seed_value_to_long (ctx, value, exception);
       break;
@@ -540,6 +543,7 @@ seed_value_to_gi_argument (JSContextRef ctx,
       arg->v_long = seed_value_to_time_t (ctx, value, exception);
       break;
 #endif
+#endif
 
     case GI_TYPE_TAG_BOOLEAN:
       arg->v_boolean = seed_value_to_boolean (ctx, value, exception);
@@ -809,6 +813,7 @@ seed_value_from_gi_argument (JSContextRef ctx,
     {
 
 #if GOBJECT_INTROSPECTION_VERSION >= 0x000900
+#if GOBJECT_INTROSPECTION_VERSION < 0x001000
     case GI_TYPE_TAG_LONG:
       return seed_value_from_long (ctx, arg->v_long, exception);
     case GI_TYPE_TAG_ULONG:
@@ -824,7 +829,7 @@ seed_value_from_gi_argument (JSContextRef ctx,
     case GI_TYPE_TAG_TIME_T:
       return seed_value_from_time_t (ctx, arg->v_long, exception);
 #endif
-
+#endif
     case GI_TYPE_TAG_VOID:
       return JSValueMakeUndefined (ctx);
     case GI_TYPE_TAG_BOOLEAN:



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