[Muine] compilation fix for glib < 2.4 (2.3?)



Hi,

latest CVS version of Muine cannot be compiled with glib-2.2 because 
eggmarshalers.c depends on g_value_take_object() function that is not 
yet in any stable release of glib. Attached patch fixes this by using 
(now deprecated) g_value_set_object_take_ownership() if glib is < 
2.4.0.

BTW, great player! Well worth installing Mono...

Regards,
Vaclav

-- 
PGP key: 0x465264C9, available from http://pgp.mit.edu/


--- eggmarshalers.c.orig	2004-01-17 16:30:59.000000000 +0100
+++ eggmarshalers.c	2004-02-08 22:21:49.000000000 +0100
@@ -1,6 +1,9 @@
 #include "eggmarshalers.h"
 #include	<glib-object.h>
 
+#if !GLIB_CHECK_VERSION(2,4,0)
+    #define g_value_take_object g_value_set_object_take_ownership
+#endif
 
 #ifdef G_ENABLE_DEBUG
 #define g_marshal_value_peek_boolean(v)  g_value_get_boolean (v)

Attachment: pgpXHYB8lWhzE.pgp
Description: signature



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