Mercurial > sdl-ios-xcode
comparison test/testplatform.c @ 1424:7a610f25c12f
Updated MacOS Classic MPW build
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 24 Feb 2006 09:57:14 +0000 |
parents | 638da75f9ab8 |
children | d5298e8f22b3 |
comparison
equal
deleted
inserted
replaced
1423:4ed717f9e509 | 1424:7a610f25c12f |
---|---|
76 | 76 |
77 if ( verbose ) { | 77 if ( verbose ) { |
78 printf("Detected a %s endian machine.\n", | 78 printf("Detected a %s endian machine.\n", |
79 (SDL_BYTEORDER == SDL_LIL_ENDIAN) ? "little" : "big"); | 79 (SDL_BYTEORDER == SDL_LIL_ENDIAN) ? "little" : "big"); |
80 } | 80 } |
81 if ( *((char *)&value) == '1' ) { | 81 if ( (*((char *)&value) >> 4) == 0x1 ) { |
82 real_byteorder = SDL_BIG_ENDIAN; | 82 real_byteorder = SDL_BIG_ENDIAN; |
83 } else { | 83 } else { |
84 real_byteorder = SDL_LIL_ENDIAN; | 84 real_byteorder = SDL_LIL_ENDIAN; |
85 } | 85 } |
86 if ( real_byteorder != SDL_BYTEORDER ) { | 86 if ( real_byteorder != SDL_BYTEORDER ) { |