src/java.desktop/share/native/libsplashscreen/splashscreen_gfx_impl.c
branchihse-warnings-cflags-branch
changeset 56230 489867818774
parent 47216 71c04702a3d5
equal deleted inserted replaced
56229:0015bf3a82e0 56230:489867818774
   333     }
   333     }
   334     /* FIXME: some advanced optimizations are possible, especially for format pairs */
   334     /* FIXME: some advanced optimizations are possible, especially for format pairs */
   335 }
   335 }
   336 
   336 
   337 int
   337 int
   338 platformByteOrder()
   338 platformByteOrder(void)
   339 {
   339 {
   340     int test = 1;
   340     int test = 1;
   341 
   341 
   342     *(char *) &test = 0;
   342     *(char *) &test = 0;
   343     return test ? BYTE_ORDER_MSBFIRST : BYTE_ORDER_LSBFIRST;
   343     return test ? BYTE_ORDER_MSBFIRST : BYTE_ORDER_LSBFIRST;