patch-src_pilot-read-notepad_c 764 B

123456789101112131415161718192021222324252627282930
  1. $OpenBSD: patch-src_pilot-read-notepad_c,v 1.3 2015/09/21 08:46:50 ajacoutot Exp $
  2. Fix build with png-1.5.
  3. --- src/pilot-read-notepad.c.orig Thu Jun 4 07:26:19 2009
  4. +++ src/pilot-read-notepad.c Mon Jul 4 15:46:34 2011
  5. @@ -39,11 +39,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. @@ -166,8 +162,8 @@ void write_png( FILE *f, struct NotePad *n )
  15. width = n->body.width + 8;
  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;