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:
11
savepng.cpp
11
savepng.cpp
@@ -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
|
||||
|
Reference in New Issue
Block a user