[libpng17] Added #ifdef's to contrib/examples programs so people don't try

to compile them without the minimum required support enabled
(suggested by Flavio Medeiros).
This commit is contained in:
Glenn Randers-Pehrson
2015-06-05 21:26:31 -05:00
parent e55c190818
commit 188962a93b
7 changed files with 679 additions and 19 deletions

View File

@@ -26,6 +26,10 @@
#include <png.h>
#if defined(PNG_READ_SUPPORTED) && defined(PNG_STDIO_SUPPORTED) && \
defined (PNG_iCCP_SUPPORTED)
static int verbose = 1;
static png_byte no_profile[] = "no profile";
@@ -178,3 +182,4 @@ main(int argc, char **argv)
/* Exit code is true if any extract succeeds */
return extracted == 0;
}
#endif /* READ && STDIO && iCCP */