view src/main.c @ 0:bacb3b7b582e

initial import
author Eris Caffee <discordia@eldalin.com>
date Sat, 09 Oct 2010 02:35:16 -0500
parents
children 0aaa058b0994
line source
1 /******************************************************************************
2 //
3 // check-sdl-version
4 // Copyright (c) 2010 Sarah Eris Horsley Caffee
5 //
6 ******************************************************************************/
8 #include <stdio.h>
9 #include <SDL.h>
10 #include <SDL_ttf.h>
12 int main(int argc, char **argv)
13 {
14 SDL_version compiled;
15 const SDL_version * linked;
16 SDL_version ttf_compiled;
17 const SDL_version * ttf_linked;
19 printf("\t\t\tCompiled\t\tLinked\n");
21 SDL_VERSION(&compiled);
22 linked = SDL_Linked_Version();
23 printf("SDL version\t\t%d.%d.%d\t\t\t%d.%d.%d\n", compiled.major, compiled.minor, compiled.patch,
24 linked->major, linked->minor, linked->patch);
26 SDL_TTF_VERSION(&ttf_compiled);
27 ttf_linked = TTF_Linked_Version();
28 printf("SDL_ttf version\t\t%d.%d.%d\t\t\t%d.%d.%d\n", ttf_compiled.major, ttf_compiled.minor, ttf_compiled.patch,
29 ttf_linked->major, ttf_linked->minor, ttf_linked->patch);
31 }