test/testplatform.c
changeset 5512 56ab281d7d3e
parent 5389 24903690f48a
child 5535 96594ac5fd1a
     1.1 --- a/test/testplatform.c	Fri Mar 25 13:19:48 2011 -0700
     1.2 +++ b/test/testplatform.c	Fri Mar 25 13:47:49 2011 -0700
     1.3 @@ -40,18 +40,12 @@
     1.4                     (unsigned int)sizeof(Uint32));
     1.5          ++error;
     1.6      }
     1.7 -#ifdef SDL_HAS_64BIT_TYPE
     1.8      if (badsize(sizeof(Uint64), 8)) {
     1.9          if (verbose)
    1.10              printf("sizeof(Uint64) != 8, instead = %u\n",
    1.11                     (unsigned int)sizeof(Uint64));
    1.12          ++error;
    1.13      }
    1.14 -#else
    1.15 -    if (verbose) {
    1.16 -        printf("WARNING: No 64-bit datatype on this platform\n");
    1.17 -    }
    1.18 -#endif
    1.19      if (verbose && !error)
    1.20          printf("All data types are the expected size.\n");
    1.21  
    1.22 @@ -68,15 +62,14 @@
    1.23      Uint16 swapped16 = 0xABCD;
    1.24      Uint32 value32 = 0xEFBEADDE;
    1.25      Uint32 swapped32 = 0xDEADBEEF;
    1.26 -#ifdef SDL_HAS_64BIT_TYPE
    1.27      Uint64 value64, swapped64;
    1.28 +
    1.29      value64 = 0xEFBEADDE;
    1.30      value64 <<= 32;
    1.31      value64 |= 0xCDAB3412;
    1.32      swapped64 = 0x1234ABCD;
    1.33      swapped64 <<= 32;
    1.34      swapped64 |= 0xDEADBEEF;
    1.35 -#endif
    1.36  
    1.37      if (verbose) {
    1.38          printf("Detected a %s endian machine.\n",
    1.39 @@ -114,7 +107,6 @@
    1.40          }
    1.41          ++error;
    1.42      }
    1.43 -#ifdef SDL_HAS_64BIT_TYPE
    1.44      if (verbose) {
    1.45  #ifdef _MSC_VER
    1.46          printf("Value 64 = 0x%I64X, swapped = 0x%I64X\n", value64,
    1.47 @@ -130,7 +122,6 @@
    1.48          }
    1.49          ++error;
    1.50      }
    1.51 -#endif
    1.52      return (error ? 1 : 0);
    1.53  }
    1.54