timepng: fix builds when there is no read support

Signed-off-by: John Bowler <jbowler@acm.org>
This commit is contained in:
John Bowler 2016-04-12 21:01:50 -07:00
parent 5b0a0ded05
commit d642eede9a

View File

@ -36,6 +36,7 @@
# include "../../png.h" # include "../../png.h"
#endif #endif
#ifdef PNG_READ_SUPPORTED
typedef struct typedef struct
{ {
FILE *input; FILE *input;
@ -527,3 +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 */
int main(void) { return 99; }
#endif /* !READ */