its G_BYTE_ORDER not G_ENDIAN.
This commit is contained in:
parent
04d6bf1e60
commit
02c7f2e8af
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ typedef u_int32_t pixel32;
|
|||
typedef u_int16_t pixel16;
|
||||
#endif /* HAVE_STDINT_H */
|
||||
|
||||
#if (G_ENDIAN == G_BIG_ENDIAN)
|
||||
#if (G_BYTE_ORDER == G_BIG_ENDIAN)
|
||||
#define default_red_shift 0
|
||||
#define default_green_shift 8
|
||||
#define default_blue_shift 16
|
||||
|
@ -31,7 +31,7 @@ typedef u_int16_t pixel16;
|
|||
#define default_green_shift 8
|
||||
#define default_blue_shift 0
|
||||
#define endian LSBFirst
|
||||
#endif /* G_ENDIAN == G_BIG_ENDIAN */
|
||||
#endif /* G_BYTE_ORDER == G_BIG_ENDIAN */
|
||||
|
||||
|
||||
typedef struct color_rgb {
|
||||
|
|
Loading…
Reference in a new issue