On Fri, Mar 09, 2018 at 01:06:39PM +0000, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> > --- > spice/macros.h | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/spice/macros.h b/spice/macros.h > index 023fd6a..ab1d056 100644 > --- a/spice/macros.h > +++ b/spice/macros.h > @@ -252,6 +252,10 @@ > # define SPICE_BYTESWAP16(val) __builtin_bswap16(val) > # define SPICE_BYTESWAP32(val) __builtin_bswap32(val) > # define SPICE_BYTESWAP64(val) __builtin_bswap64(val) > +#elif defined(_MSC_VER) > +# define SPICE_BYTESWAP16(val) _byteswap_ushort(val) > +# define SPICE_BYTESWAP32(val) _byteswap_ulong(val) > +# define SPICE_BYTESWAP64(val) _byteswap_uint64(val) I don't even know if they are going to be used? The only potential user would be the QXL drivers, and they don't seem to be using that macro. Not really a problem to have these anyway, Acked-by: Christophe Fergeau <cfergeau@xxxxxxxxxx>
Attachment:
signature.asc
Description: PGP signature
_______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel