test/testver.c
changeset 7639 9406b7dd2f2d
parent 7517 965d57022c01
child 8149 681eb46b8ac4
     1.1 --- a/test/testver.c	Mon Aug 12 22:00:21 2013 -0700
     1.2 +++ b/test/testver.c	Wed Aug 14 23:30:10 2013 -0700
     1.3 @@ -26,17 +26,20 @@
     1.4      SDL_version compiled;
     1.5      SDL_version linked;
     1.6  
     1.7 +	/* Enable standard application logging */
     1.8 +    SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO);
     1.9 +
    1.10  #if SDL_VERSION_ATLEAST(2, 0, 0)
    1.11 -    printf("Compiled with SDL 2.0 or newer\n");
    1.12 +    SDL_Log("Compiled with SDL 2.0 or newer\n");
    1.13  #else
    1.14 -    printf("Compiled with SDL older than 2.0\n");
    1.15 +    SDL_Log("Compiled with SDL older than 2.0\n");
    1.16  #endif
    1.17      SDL_VERSION(&compiled);
    1.18 -    printf("Compiled version: %d.%d.%d.%d (%s)\n",
    1.19 +    SDL_Log("Compiled version: %d.%d.%d.%d (%s)\n",
    1.20             compiled.major, compiled.minor, compiled.patch,
    1.21             SDL_REVISION_NUMBER, SDL_REVISION);
    1.22      SDL_GetVersion(&linked);
    1.23 -    printf("Linked version: %d.%d.%d.%d (%s)\n",
    1.24 +    SDL_Log("Linked version: %d.%d.%d.%d (%s)\n",
    1.25             linked.major, linked.minor, linked.patch,
    1.26             SDL_GetRevisionNumber(), SDL_GetRevision());
    1.27      SDL_Quit();