26 lines
725 B
Text
26 lines
725 B
Text
$NetBSD: patch-ag,v 1.1 2010/06/19 13:29:24 wiz Exp $
|
|
|
|
--- src/pilot-read-screenshot.c.orig 2009-06-04 13:26:19.000000000 +0000
|
|
+++ src/pilot-read-screenshot.c
|
|
@@ -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))
|
|
@@ -87,8 +83,8 @@ void write_png ( char *fname, struct ss_
|
|
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;
|