The Battle for Wesnoth
1.17.4+dev
conftests
sdl2_webp.cpp
Go to the documentation of this file.
1
#include <SDL2/SDL_image.h>
2
#include <stdlib.h>
3
4
int
main
(
int
,
char
** argv)
5
{
6
SDL_RWops *src = SDL_RWFromFile(argv[1],
"rb"
);
7
if
(src == NULL) {
8
exit(2);
9
}
10
exit(!IMG_isWEBP(src));
11
}
main
int main(int, char **argv)
Definition:
sdl2_webp.cpp:4
Generated by
1.8.13