diff --git a/src/w_wad.c b/src/w_wad.c index 5d0e46f2..6b65b285 100644 --- a/src/w_wad.c +++ b/src/w_wad.c @@ -1385,7 +1385,9 @@ void zerr(int ret) } #endif +#ifndef HAVE_PNG #define NO_PNG_LUMPS +#endif #ifdef NO_PNG_LUMPS static void ErrorIfPNG(UINT8 *d, size_t s, char *f, char *l)