[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

@@ -20,6 +20,8 @@
* ensure the code picks up the local libpng implementation:
*/
#include "../../png.h"
#if defined(PNG_SIMPLIFIED_READ_SUPPORTED) && \
defined(PNG_SIMPLIFIED_WRITE_SUPPORTED)
int main(int argc, const char **argv)
{
@@ -90,3 +92,4 @@ int main(int argc, const char **argv)
return result;
}
#endif /* READ && WRITE */