diff --git a/test/main.c b/test/main.c index 7990c5f7..c0e7e92c 100644 --- a/test/main.c +++ b/test/main.c @@ -305,7 +305,11 @@ static const Format formats[] = #else SDL_FALSE, #endif - SDL_IMAGE_SAVE_PNG, +#ifdef SDL_IMAGE_SAVE_PNG + SDL_IMAGE_SAVE_PNG ? SDL_TRUE : SDL_FALSE, +#else + SDL_FALSE, +#endif IMG_isPNG, IMG_LoadPNG_RW, },