test/testver.c
changeset 1895 c121d94672cb
parent 1154 d93862a3d821
child 2983 388c5a2daeac
     1.1 --- a/test/testver.c	Thu Jul 06 18:01:37 2006 +0000
     1.2 +++ b/test/testver.c	Mon Jul 10 21:04:37 2006 +0000
     1.3 @@ -8,30 +8,30 @@
     1.4  
     1.5  #include "SDL.h"
     1.6  
     1.7 -int main(int argc, char *argv[])
     1.8 +int
     1.9 +main(int argc, char *argv[])
    1.10  {
    1.11 -	SDL_version compiled;
    1.12 +    SDL_version compiled;
    1.13  
    1.14 -	/* Initialize SDL */
    1.15 -	if ( SDL_Init(0) < 0 ) {
    1.16 -		fprintf(stderr, "Couldn't initialize SDL: %s\n",SDL_GetError());
    1.17 -		exit(1);
    1.18 -	}
    1.19 +    /* Initialize SDL */
    1.20 +    if (SDL_Init(0) < 0) {
    1.21 +        fprintf(stderr, "Couldn't initialize SDL: %s\n", SDL_GetError());
    1.22 +        exit(1);
    1.23 +    }
    1.24  #ifdef DEBUG
    1.25 -	fprintf(stderr, "SDL initialized\n");
    1.26 +    fprintf(stderr, "SDL initialized\n");
    1.27  #endif
    1.28  #if SDL_VERSION_ATLEAST(1, 2, 0)
    1.29 -	printf("Compiled with SDL 1.2 or newer\n");
    1.30 +    printf("Compiled with SDL 1.2 or newer\n");
    1.31  #else
    1.32 -	printf("Compiled with SDL older than 1.2\n");
    1.33 +    printf("Compiled with SDL older than 1.2\n");
    1.34  #endif
    1.35 -	SDL_VERSION(&compiled);
    1.36 -	printf("Compiled version: %d.%d.%d\n",
    1.37 -			compiled.major, compiled.minor, compiled.patch);
    1.38 -	printf("Linked version: %d.%d.%d\n",
    1.39 -			SDL_Linked_Version()->major,
    1.40 -			SDL_Linked_Version()->minor,
    1.41 -			SDL_Linked_Version()->patch);
    1.42 -	SDL_Quit();
    1.43 -	return(0);
    1.44 +    SDL_VERSION(&compiled);
    1.45 +    printf("Compiled version: %d.%d.%d\n",
    1.46 +           compiled.major, compiled.minor, compiled.patch);
    1.47 +    printf("Linked version: %d.%d.%d\n",
    1.48 +           SDL_Linked_Version()->major,
    1.49 +           SDL_Linked_Version()->minor, SDL_Linked_Version()->patch);
    1.50 +    SDL_Quit();
    1.51 +    return (0);
    1.52  }