test/testver.c
branchSDL-1.3
changeset 1668 4da1ee79c9af
parent 1662 782fd950bd46
     1.1 --- a/test/testver.c	Mon May 29 03:53:21 2006 +0000
     1.2 +++ b/test/testver.c	Mon May 29 04:04:35 2006 +0000
     1.3 @@ -9,29 +9,29 @@
     1.4  #include "SDL.h"
     1.5  
     1.6  int
     1.7 -main (int argc, char *argv[])
     1.8 +main(int argc, char *argv[])
     1.9  {
    1.10      SDL_version compiled;
    1.11  
    1.12      /* Initialize SDL */
    1.13 -    if (SDL_Init (0) < 0) {
    1.14 -        fprintf (stderr, "Couldn't initialize SDL: %s\n", SDL_GetError ());
    1.15 -        exit (1);
    1.16 +    if (SDL_Init(0) < 0) {
    1.17 +        fprintf(stderr, "Couldn't initialize SDL: %s\n", SDL_GetError());
    1.18 +        exit(1);
    1.19      }
    1.20  #ifdef DEBUG
    1.21 -    fprintf (stderr, "SDL initialized\n");
    1.22 +    fprintf(stderr, "SDL initialized\n");
    1.23  #endif
    1.24  #if SDL_VERSION_ATLEAST(1, 2, 0)
    1.25 -    printf ("Compiled with SDL 1.2 or newer\n");
    1.26 +    printf("Compiled with SDL 1.2 or newer\n");
    1.27  #else
    1.28 -    printf ("Compiled with SDL older than 1.2\n");
    1.29 +    printf("Compiled with SDL older than 1.2\n");
    1.30  #endif
    1.31 -    SDL_VERSION (&compiled);
    1.32 -    printf ("Compiled version: %d.%d.%d\n",
    1.33 -            compiled.major, compiled.minor, compiled.patch);
    1.34 -    printf ("Linked version: %d.%d.%d\n",
    1.35 -            SDL_Linked_Version ()->major,
    1.36 -            SDL_Linked_Version ()->minor, SDL_Linked_Version ()->patch);
    1.37 -    SDL_Quit ();
    1.38 +    SDL_VERSION(&compiled);
    1.39 +    printf("Compiled version: %d.%d.%d\n",
    1.40 +           compiled.major, compiled.minor, compiled.patch);
    1.41 +    printf("Linked version: %d.%d.%d\n",
    1.42 +           SDL_Linked_Version()->major,
    1.43 +           SDL_Linked_Version()->minor, SDL_Linked_Version()->patch);
    1.44 +    SDL_Quit();
    1.45      return (0);
    1.46  }