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

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

No files matched your search

+11
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