Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/pilot-read-notepad.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@

#ifdef HAVE_PNG
#include "png.h"
#if (PNG_LIBPNG_VER < 10201)
#define png_voidp_NULL (png_voidp)NULL
#define png_error_ptr_NULL (png_error_ptr)NULL
#endif
#endif

const char *progname;
Expand Down Expand Up @@ -166,8 +162,8 @@ void write_png( FILE *f, struct NotePad *n )
width = n->body.width + 8;

png_ptr = png_create_write_struct
( PNG_LIBPNG_VER_STRING, png_voidp_NULL,
png_error_ptr_NULL, png_error_ptr_NULL);
( PNG_LIBPNG_VER_STRING, NULL,
NULL, NULL);

if(!png_ptr)
return;
Expand Down
8 changes: 2 additions & 6 deletions src/pilot-read-palmpix.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@

#ifdef HAVE_PNG
#include "png.h"
#if (PNG_LIBPNG_VER < 10201)
#define png_voidp_NULL (png_voidp)NULL
#define png_error_ptr_NULL (png_error_ptr)NULL
#endif
#endif

const char *progname;
Expand Down Expand Up @@ -223,8 +219,8 @@ void write_png( FILE *f, const struct PalmPixState *state,
png_infop info_ptr;

png_ptr = png_create_write_struct
( PNG_LIBPNG_VER_STRING, png_voidp_NULL,
png_error_ptr_NULL, png_error_ptr_NULL);
( PNG_LIBPNG_VER_STRING, NULL,
NULL, NULL);

if(!png_ptr)
return;
Expand Down
8 changes: 2 additions & 6 deletions src/pilot-read-screenshot.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@

#ifdef HAVE_PNG
# include "png.h"
# if (PNG_LIBPNG_VER < 10201)
# define png_voidp_NULL (png_voidp)NULL
# define png_error_ptr_NULL (png_error_ptr)NULL
# endif
#endif

#define pi_mktag(c1,c2,c3,c4) (((c1)<<24)|((c2)<<16)|((c3)<<8)|(c4))
Expand Down Expand Up @@ -87,8 +83,8 @@ void write_png ( char *fname, struct ss_state *state )
gray_buf = malloc( state->w );

png_ptr = png_create_write_struct
(PNG_LIBPNG_VER_STRING, png_voidp_NULL,
png_error_ptr_NULL, png_error_ptr_NULL);
(PNG_LIBPNG_VER_STRING, NULL,
NULL, NULL);

if (!png_ptr)
return;
Expand Down
8 changes: 2 additions & 6 deletions src/pilot-read-veo.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@

#ifdef HAVE_PNG
# include "png.h"
# if (PNG_LIBPNG_VER < 10201)
# define png_voidp_NULL (png_voidp)NULL
# define png_error_ptr_NULL (png_error_ptr)NULL
# endif
#endif

#define pi_mktag(c1,c2,c3,c4) (((c1)<<24)|((c2)<<16)|((c3)<<8)|(c4))
Expand Down Expand Up @@ -856,8 +852,8 @@ void write_png (FILE * f, struct Veo *v, long flags)
png_infop info_ptr;

png_ptr = png_create_write_struct
(PNG_LIBPNG_VER_STRING, png_voidp_NULL,
png_error_ptr_NULL, png_error_ptr_NULL);
(PNG_LIBPNG_VER_STRING, NULL,
NULL, NULL);

if (!png_ptr)
return;
Expand Down