[gjs] gi: fix compilation with verbose debugging enabled



commit 3740686ed9800f87515ea4808d2d236275dd84ee
Author: Tommi Komulainen <tko litl com>
Date:   Fri Apr 17 17:23:50 2009 +0100

    gi: fix compilation with verbose debugging enabled
---
 gi/boxed.c |    2 +-
 gi/union.c |    6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/gi/boxed.c b/gi/boxed.c
index 1bb57f0..5e2bf49 100644
--- a/gi/boxed.c
+++ b/gi/boxed.c
@@ -1232,7 +1232,7 @@ gjs_boxed_from_c_struct(JSContext             *context,
 
     gjs_debug_marshal(GJS_DEBUG_GBOXED,
                       "Wrapping struct %s %p with JSObject",
-                      g_base_info_get_name((GBaseInfo *)info), gboxed);
+                      g_base_info_get_name((GIBaseInfo *)info), gboxed);
 
     proto = gjs_lookup_boxed_prototype(context, info);
 
diff --git a/gi/union.c b/gi/union.c
index ba85c9a..d633da4 100644
--- a/gi/union.c
+++ b/gi/union.c
@@ -25,6 +25,9 @@
 
 #include <string.h>
 
+/* include first for logging related #define used in repo.h */
+#include <util/log.h>
+
 #include "union.h"
 #include "arg.h"
 #include "object.h"
@@ -32,7 +35,6 @@
 #include "repo.h"
 #include "function.h"
 
-#include <util/log.h>
 
 #include <jsapi.h>
 
@@ -543,7 +545,7 @@ gjs_union_from_c_union(JSContext    *context,
 
     gjs_debug_marshal(GJS_DEBUG_GBOXED,
                       "Wrapping union %s %p with JSObject",
-                      g_base_info_get_name((GBaseInfo *)info), gboxed);
+                      g_base_info_get_name((GIBaseInfo *)info), gboxed);
 
     proto = gjs_lookup_union_prototype(context, (GIUnionInfo*) info);
 



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