qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 2/2] Compile time checks for newer glib


From: Dr. David Alan Gilbert
Subject: Re: [Qemu-devel] [PATCH 2/2] Compile time checks for newer glib
Date: Fri, 29 May 2015 17:01:31 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

* Peter Maydell (address@hidden) wrote:
> On 29 May 2015 at 16:01, Dr. David Alan Gilbert (git)
> <address@hidden> wrote:
> > --- a/include/glib-compat.h
> > +++ b/include/glib-compat.h
> > @@ -16,6 +16,12 @@
> >  #ifndef QEMU_GLIB_COMPAT_H
> >  #define QEMU_GLIB_COMPAT_H
> >
> > +/*
> > + * The source file including this compat header knows it's using newer glib
> > + * functions than we generally allow, so don't warn about it.
> > + */
> > +#undef GLIB_VERSION_MIN_REQUIRED
> > +#undef GLIB_VERSION_MAX_ALLOWED
> >  #include <glib.h>
> 
> ...but glib-compat.h is included by qemu-common.h and in general
> the point is that code anywhere in QEMU can assume the compat
> versions exist, so it feels like this will defeat the point.

Hmm, a lot of files seem to include glib.h directly.  But OK,
so then Paolo is suggesting setting the minimum to 2.32
which I can do, but then that wouldn't stop something that's
in 2.22-2.32 but not in glib-compat.h

Dave

> 
> -- PMM
--
Dr. David Alan Gilbert / address@hidden / Manchester, UK



reply via email to

[Prev in Thread] Current Thread [Next in Thread]