SDL 1.3 requires a 64-bit type for the platform.

This commit is contained in:
Sam Lantinga 2011-03-25 13:47:49 -07:00
parent da1479c45f
commit 5c01c4797c
16 changed files with 5 additions and 2350 deletions

View file

@ -58,11 +58,9 @@ static void plat_testTypes (void)
if (SDL_ATvassert( ret == 0, "sizeof(Uint32) = %lu instead of 4", sizeof(Uint32) ))
return;
#ifdef SDL_HAS_64BIT_TYPE
ret = plat_testSize( sizeof(Uint64), 8 );
if (SDL_ATvassert( ret == 0, "sizeof(Uint64) = %lu instead of 8", sizeof(Uint64) ))
return;
#endif /* SDL_HAS_64BIT_TYPE */
SDL_ATend();
}
@ -79,7 +77,7 @@ static void plat_testEndian (void)
Uint16 swapped16 = 0xABCD;
Uint32 value32 = 0xEFBEADDE;
Uint32 swapped32 = 0xDEADBEEF;
#ifdef SDL_HAS_64BIT_TYPE
Uint64 value64, swapped64;
value64 = 0xEFBEADDE;
value64 <<= 32;
@ -87,7 +85,6 @@ static void plat_testEndian (void)
swapped64 = 0x1234ABCD;
swapped64 <<= 32;
swapped64 |= 0xDEADBEEF;
#endif
SDL_ATbegin( "Endianness" );
@ -115,7 +112,6 @@ static void plat_testEndian (void)
value32, SDL_Swap32(value32) ))
return;
#ifdef SDL_HAS_64BIT_TYPE
/* Test 64 swap. */
if (SDL_ATvassert( SDL_Swap64(value64) == swapped64,
#ifdef _MSC_VER
@ -125,7 +121,6 @@ static void plat_testEndian (void)
#endif
value64, SDL_Swap64(value64) ))
return;
#endif
SDL_ATend();
}