timepng requires STDIO

Signed-off-by: John Bowler <jbowler@acm.org>
This commit is contained in:
John Bowler 2016-04-12 21:10:04 -07:00
parent 569a1d27b4
commit 7572840cd0

View File

@ -36,7 +36,7 @@
# include "../../png.h" # include "../../png.h"
#endif #endif
#ifdef PNG_READ_SUPPORTED #if (((defined(PNG_READ_SUPPORTED)) && defined(PNG_STDIO_SUPPORTED)))
typedef struct typedef struct
{ {
FILE *input; FILE *input;
@ -528,6 +528,6 @@ int main(int argc, char **argv)
/* Exit code 0 on success. */ /* Exit code 0 on success. */
return ok == 0; return ok == 0;
} }
#else /* !READ */ #else /* !READ || !STDIO */
int main(void) { return 77; } int main(void) { return 77; }
#endif /* !READ */ #endif /* !READ || !STDIO */