patch-src_pilot-read-palmpix_c 742 B

123456789101112131415161718192021222324252627282930
  1. $OpenBSD: patch-src_pilot-read-palmpix_c,v 1.3 2015/09/21 08:46:50 ajacoutot Exp $
  2. Fix build with png-1.5.
  3. --- src/pilot-read-palmpix.c.orig Thu Jun 4 07:26:19 2009
  4. +++ src/pilot-read-palmpix.c Mon Jul 4 15:50:37 2011
  5. @@ -42,11 +42,7 @@
  6. #ifdef HAVE_PNG
  7. #include "png.h"
  8. -#if (PNG_LIBPNG_VER < 10201)
  9. - #define png_voidp_NULL (png_voidp)NULL
  10. - #define png_error_ptr_NULL (png_error_ptr)NULL
  11. #endif
  12. -#endif
  13. const char *progname;
  14. @@ -223,8 +219,8 @@ void write_png( FILE *f, const struct PalmPixState *st
  15. png_infop info_ptr;
  16. png_ptr = png_create_write_struct
  17. - ( PNG_LIBPNG_VER_STRING, png_voidp_NULL,
  18. - png_error_ptr_NULL, png_error_ptr_NULL);
  19. + ( PNG_LIBPNG_VER_STRING, NULL,
  20. + NULL, NULL);
  21. if(!png_ptr)
  22. return;