diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-02 21:37:24 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-02 21:37:24 +0100 |
commit | eaddcb8a517d6f39ca8036e9e021e40f88c7d98c (patch) | |
tree | f209ff244a34d060a6ebcd712500047791fc917d /desktop/unx | |
parent | 0d0729ca97e67505a52dcb07d7819f6c444a0031 (diff) |
Use OSL_LIT/BIGENDIAN
...one of which is guaranteed to be defined
Change-Id: Icb02826f8da03ad0d605ec11f07bf60f30d1a3d0
Diffstat (limited to 'desktop/unx')
-rw-r--r-- | desktop/unx/source/splashx.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/desktop/unx/source/splashx.c b/desktop/unx/source/splashx.c index a300a0295227..db9e01e2f907 100644 --- a/desktop/unx/source/splashx.c +++ b/desktop/unx/source/splashx.c @@ -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 ); |