diff options
author | Søren Sandmann <sandmann@redhat.com> | 2007-05-22 10:00:46 -0400 |
---|---|---|
committer | Søren Sandmann <sandmann@redhat.com> | 2007-05-22 10:00:46 -0400 |
commit | e32b240145ee7bbc2e69020b0bb00c33c68acf15 (patch) | |
tree | 24dbeabda2f0590fa9beed0849e6740593a8b093 | |
parent | e5cf135170198a33429b00f7c506a84054f0297e (diff) |
Detect endianness
-rw-r--r-- | TODO | 2 | ||||
-rw-r--r-- | pixman/pixman-private.h | 8 |
2 files changed, 8 insertions, 2 deletions
@@ -58,5 +58,3 @@ the X server will be changing them. - Make sure the endian-ness macros are defined correctly. - -- Detect MMX code properly diff --git a/pixman/pixman-private.h b/pixman/pixman-private.h index ab3f2d2..85a670f 100644 --- a/pixman/pixman-private.h +++ b/pixman/pixman-private.h @@ -15,6 +15,14 @@ #define TRUE 1 #endif +#ifdef WORDS_BIGENDIAN +# define IMAGE_BYTE_ORDER MSBFirst +# define BITMAP_BIT_ORDER MSBFirst +#else +# define IMAGE_BYTE_ORDER LSBFirst +# define BITMAP_BIT_ORDER LSBFirst +#endif + #define DEBUG 1 #if defined (__GNUC__) |