view src/main.c @ 2:837f5d6c4a72

Version with only sdl support..
author Eris Caffee <discordia@eldalin.com>
date Thu, 14 Oct 2010 00:43:26 -0500
parents 0aaa058b0994
children d3d9c758a0ee
line source
1 /******************************************************************************
2 //
3 // check-sdl-version
4 // Copyright (c) 2010 Sarah Eris Horsley Caffee
5 //
6 // Just a quick test program to verify SDL installation and to use as an
7 // example for learning to use CMake.
8 //
9 // This program may be freely copied, distributed, and used for any purpose.
10 //
11 ******************************************************************************/
13 #include <stdio.h>
14 #include <SDL.h>
16 int main(int argc, char **argv)
17 {
18 SDL_version compiled;
19 const SDL_version * linked;
21 printf("\t\t\tCompiled\t\tLinked\n");
23 SDL_VERSION(&compiled);
24 linked = SDL_Linked_Version();
25 printf("SDL version\t\t%d.%d.%d\t\t\t%d.%d.%d\n", compiled.major, compiled.minor, compiled.patch,
26 linked->major, linked->minor, linked->patch);
27 }