Skip to content

Commit

Permalink
Define (read|write)_png only #ifdef HAVE_PNG_H (#3647)
Browse files Browse the repository at this point in the history
  • Loading branch information
HuidaeCho committed Apr 22, 2024
1 parent 9c86360 commit 96aa1b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/pngdriver/pngdriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,17 @@ extern void read_image(void);
extern void read_ppm(void);
extern void read_pgm(void);
extern void read_bmp(void);
#ifdef HAVE_PNG_H
extern void read_png(void);
#endif

extern void write_image(void);
extern void write_ppm(void);
extern void write_pgm(void);
extern void write_bmp(void);
#ifdef HAVE_PNG_H
extern void write_png(void);
#endif

extern void png_init_color_table(void);
extern unsigned int png_get_color(int, int, int, int);
Expand Down

0 comments on commit 96aa1b4

Please sign in to comment.