test/testver.c
changeset 6251 3e8c673cad58
parent 5535 96594ac5fd1a
child 7517 965d57022c01
equal deleted inserted replaced
6250:cce0ddcf6747 6251:3e8c673cad58
    24 main(int argc, char *argv[])
    24 main(int argc, char *argv[])
    25 {
    25 {
    26     SDL_version compiled;
    26     SDL_version compiled;
    27     SDL_version linked;
    27     SDL_version linked;
    28 
    28 
    29 #if SDL_VERSION_ATLEAST(1, 3, 0)
    29 #if SDL_VERSION_ATLEAST(2, 0, 0)
    30     printf("Compiled with SDL 1.3 or newer\n");
    30     printf("Compiled with SDL 2.0 or newer\n");
    31 #else
    31 #else
    32     printf("Compiled with SDL older than 1.3\n");
    32     printf("Compiled with SDL older than 2.0\n");
    33 #endif
    33 #endif
    34     SDL_VERSION(&compiled);
    34     SDL_VERSION(&compiled);
    35     printf("Compiled version: %d.%d.%d.%d (%s)\n",
    35     printf("Compiled version: %d.%d.%d.%d (%s)\n",
    36            compiled.major, compiled.minor, compiled.patch,
    36            compiled.major, compiled.minor, compiled.patch,
    37            SDL_REVISION_NUMBER, SDL_REVISION);
    37            SDL_REVISION_NUMBER, SDL_REVISION);