The Battle for Wesnoth
1.17.4+dev
conftests
sdl2.cpp
Go to the documentation of this file.
1
#include <SDL2/SDL.h>
2
#include <stdlib.h>
3
#include <string>
4
5
int
main
(
int
,
char
** argv)
6
{
7
int
major = std::stoi(argv[1]);
8
int
minor = std::stoi(argv[2]);
9
int
patchlevel = std::stoi(argv[3]);
10
11
if
(!SDL_VERSION_ATLEAST(major, minor, patchlevel)) {
12
exit(1);
13
}
14
15
SDL_Init(0);
16
SDL_Quit();
17
18
return
0;
19
}
main
int main(int, char **argv)
Definition:
sdl2.cpp:5
Generated by
1.8.13