Use OSL_LIT/BIGENDIAN
...one of which is guaranteed to be defined Change-Id: Icb02826f8da03ad0d605ec11f07bf60f30d1a3d0
This commit is contained in:
parent
0d0729ca97
commit
eaddcb8a51
@ -243,18 +243,10 @@ static void create_pixmap(struct splash* splash)
|
||||
int bytes_per_line = image->bytes_per_line;
|
||||
int bpp = image->bits_per_pixel;
|
||||
int byte_order = image->byte_order;
|
||||
#if defined( _LITTLE_ENDIAN )
|
||||
#if defined OSL_LITENDIAN
|
||||
int machine_byte_order = LSBFirst;
|
||||
#elif defined( _BIG_ENDIAN )
|
||||
#else /* OSL_BIGENDIAN */
|
||||
int machine_byte_order = MSBFirst;
|
||||
#else
|
||||
{
|
||||
fprintf( stderr, "Unsupported machine endianity.\n" );
|
||||
XFreeGC( splash->display, pixmap_gc );
|
||||
XFreePixmap( splash->display, pixmap );
|
||||
XDestroyImage( image );
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
char *data = malloc( splash->height * bytes_per_line );
|
||||
|
Loading…
x
Reference in New Issue
Block a user