timepng: fix builds when there is no read support
Signed-off-by: John Bowler <jbowler@acm.org>
This commit is contained in:
parent
5b0a0ded05
commit
d642eede9a
@ -36,6 +36,7 @@
|
||||
# include "../../png.h"
|
||||
#endif
|
||||
|
||||
#ifdef PNG_READ_SUPPORTED
|
||||
typedef struct
|
||||
{
|
||||
FILE *input;
|
||||
@ -527,3 +528,6 @@ int main(int argc, char **argv)
|
||||
/* Exit code 0 on success. */
|
||||
return ok == 0;
|
||||
}
|
||||
#else /* !READ */
|
||||
int main(void) { return 99; }
|
||||
#endif /* !READ */
|
||||
|
Loading…
Reference in New Issue
Block a user