[PATCH] dix: Fix endianess detection
Adam Jackson
ajax at redhat.com
Thu Apr 9 09:54:05 PDT 2015
On Thu, 2015-04-09 at 15:33 +0200, Olivier Fourdan wrote:
> Make sure X_BIG_ENDIAN/X_LITTLE_ENDIAN are defined before actually using
> them.
>
> Otherwise, byte order could be wrong even though endianess detection is
> correct.
>
> Reported-by: Tim Waugh <twaugh at redhat.com>
> Signed-off-by: Olivier Fourdan <ofourdan at redhat.com>
I'm a little wary of this. Xarch.h doesn't have ifdef guards arounds
its definition of those, might be better to just include that after the
#undef X_BYTE_ORDER.
- ajax
More information about the xorg-devel
mailing list