[PATCH] turn off G_DISABLE_DEPRECATED for qof/guid.c
Bill Nottingham
notting at redhat.com
Fri Dec 23 22:20:29 EST 2005
In glib-2.9/2.10, GMemChunk is deprecated for GSlice. GSlice
isn't added until 2.9/2.10, so we can't port the code to that.
Hence, turn off G_DISABLE_DEPRECATED for this one file only.
Bill
-------------- next part --------------
--- gnucash/lib/libqof/qof/guid.c.foo 2005-12-22 17:13:33.000000000 -0500
+++ gnucash/lib/libqof/qof/guid.c 2005-12-22 17:17:02.000000000 -0500
@@ -27,6 +27,8 @@
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
+/* fix for glib-2.10 */
+#undef G_DISABLE_DEPRECATED
#include <sys/types.h>
#include <ctype.h>
More information about the gnucash-devel
mailing list