1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-01 02:07:57 +00:00

mymake:: savepng now works like other modules, and is compiled with SDL2 if needed

This commit is contained in:
Zeno Rogue
2021-03-07 14:02:06 +01:00
parent 4de8e6507d
commit 77e673f6f1
2 changed files with 18 additions and 5 deletions

View File

@@ -4,7 +4,18 @@
* This code is free software, available under zlib/libpng license.
* http://www.libpng.org/pub/png/src/libpng-LICENSE.txt
*/
#ifdef CAP_SDL
#if CAP_SDL
#define USE_SDL2
#endif
#endif
#ifdef USE_SDL2
#include <SDL2/SDL.h>
#else
#include <SDL/SDL.h>
#endif
#include <png.h>
#define SUCCESS 0