Kaydet (Commit) eaddcb8a authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Use OSL_LIT/BIGENDIAN

...one of which is guaranteed to be defined

Change-Id: Icb02826f8da03ad0d605ec11f07bf60f30d1a3d0
üst 0d0729ca
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment