The Battle for Wesnoth  1.17.10+dev
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 }
int main(int, char **argv)
Definition: sdl2_webp.cpp:4