test/testplatform.c
changeset 3312 c91cb3f0204e
parent 3292 245a7d79577c
child 3319 63d4517fc4ac
equal deleted inserted replaced
3311:0679e03ef8fa 3312:c91cb3f0204e
    21 {
    21 {
    22     int error = 0;
    22     int error = 0;
    23 
    23 
    24     if (badsize(sizeof(Uint8), 1)) {
    24     if (badsize(sizeof(Uint8), 1)) {
    25         if (verbose)
    25         if (verbose)
    26             printf("sizeof(Uint8) != 1, instead = %ul\n", sizeof(Uint8));
    26             printf("sizeof(Uint8) != 1, instead = %lu\n", sizeof(Uint8));
    27         ++error;
    27         ++error;
    28     }
    28     }
    29     if (badsize(sizeof(Uint16), 2)) {
    29     if (badsize(sizeof(Uint16), 2)) {
    30         if (verbose)
    30         if (verbose)
    31             printf("sizeof(Uint16) != 2, instead = %ul\n", sizeof(Uint16));
    31             printf("sizeof(Uint16) != 2, instead = %lu\n", sizeof(Uint16));
    32         ++error;
    32         ++error;
    33     }
    33     }
    34     if (badsize(sizeof(Uint32), 4)) {
    34     if (badsize(sizeof(Uint32), 4)) {
    35         if (verbose)
    35         if (verbose)
    36             printf("sizeof(Uint32) != 4, instead = %ul\n", sizeof(Uint32));
    36             printf("sizeof(Uint32) != 4, instead = %lu\n", sizeof(Uint32));
    37         ++error;
    37         ++error;
    38     }
    38     }
    39 #ifdef SDL_HAS_64BIT_TYPE
    39 #ifdef SDL_HAS_64BIT_TYPE
    40     if (badsize(sizeof(Uint64), 8)) {
    40     if (badsize(sizeof(Uint64), 8)) {
    41         if (verbose)
    41         if (verbose)
    42             printf("sizeof(Uint64) != 8, instead = %ul\n", sizeof(Uint64));
    42             printf("sizeof(Uint64) != 8, instead = %lu\n", sizeof(Uint64));
    43         ++error;
    43         ++error;
    44     }
    44     }
    45 #else
    45 #else
    46     if (verbose) {
    46     if (verbose) {
    47         printf("WARNING: No 64-bit datatype on this platform\n");
    47         printf("WARNING: No 64-bit datatype on this platform\n");