[Spice-devel] [PATCH] Fix compatibility with old GCC versions

Frediano Ziglio fziglio at redhat.com
Tue Aug 18 10:40:33 PDT 2015


Does something like "Fix endianess compatibility with old GCC versions" sound ok?

Frediano

> 
> Hi Frediano,
> 
> Looks good to me, Ack.
> 
> I'd mention in the subject this patch is about spice endianness.
> 
> Uri.
> 
> >
> > Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> > Reported-by: Swapna Krishnan <skrishna at redhat.com>
> > Tested-by: Swapna Krishnan <skrishna at redhat.com>
> > ---
> >   spice/macros.h | 3 ++-
> >   1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/spice/macros.h b/spice/macros.h
> > index 716f6e0..180c2b7 100644
> > --- a/spice/macros.h
> > +++ b/spice/macros.h
> > @@ -383,7 +383,8 @@
> >   #ifndef SPICE_ENDIAN
> >   #  if defined(__LITTLE_ENDIAN__) || defined(__ARMEL__) \
> >         || defined(__THUMBEL__) || defined(__AARCH64EL__) \
> > -      || defined(_MIPSEL) || defined(__MIPSEL) || defined(__MIPSEL__)
> > +      || defined(_MIPSEL) || defined(__MIPSEL) || defined(__MIPSEL__) \
> > +      || defined(__amd64__) || defined(__x86_64__) || defined(__i386__)
> >   #    define SPICE_ENDIAN SPICE_ENDIAN_LITTLE
> >   #  endif
> >   #  if defined(__BIG_ENDIAN__) || defined(__ARMEB__) \
> >
> 
> 


More information about the Spice-devel mailing list