[Bug 94570] Use BYTE_ORDER to determine byte order
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Apr 12 08:03:48 UTC 2016
https://bugs.freedesktop.org/show_bug.cgi?id=94570
--- Comment #4 from Frediano Ziglio <fziglio at redhat.com> ---
>
> Taking your latter comment into account, how about something along these
> lines?
>
> +#if defined(BYTE_ORDER)
> +# if BYTE_ORDER == LITTLE_ENDIAN
> +# define SPICE_ENDIAN SPICE_ENDIAN_LITTLE
> +# elif BYTE_ORDER == BIG_ENDIAN
> +# define SPICE_ENDIAN SPICE_ENDIAN_BIG
> +# endif
> +#endif
>
> This would guard the code in the sense that it won't be evaluated if
> endian.h isn't already included through another header.
Does this work on *BSD ?
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/spice-bugs/attachments/20160412/b0853841/attachment.html>
More information about the spice-bugs
mailing list