diff --git a/src/ChangeLog b/src/ChangeLog index 841c01000..889410d01 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2001-08-11 Pavel Roskin + + * mad.h: Disable glib support - it doesn't work properly. + 2001-08-07 Pavel Roskin * view.c: Warning fixes. Include "cmd.h". Rename help_cmd() diff --git a/src/mad.h b/src/mad.h index fbb7ac5bd..6fcac8078 100644 --- a/src/mad.h +++ b/src/mad.h @@ -46,6 +46,13 @@ #define strndup(x, n) mad_strndup (x, n, __FILE__, __LINE__) #define free(x) mad_free (x, __FILE__, __LINE__) +/* + * Define MAD_GLIB to debug allocations in glib as well. + * This code is not functional yet. + */ +#undef MAD_GLIB + +#ifdef MAD_GLIB /* These definitions are grabbed from GLib.h */ #define g_new(type, count) \ ((type *) g_malloc ((unsigned) sizeof (type) * (count))) @@ -63,6 +70,7 @@ #define g_strconcat mad_strconcat #define g_strdup_printf mad_strdup_printf #define g_strdup_vprintf mad_strdup_vprintf +#endif /* MAD_GLIB */ void mad_init (void); void mad_set_debug (const char *file);