+// from pngerror.c
+// so that the libpng doesn't send anything on stderr
+void
+PNGLINKAGEMODE wx_png_error(png_structp WXUNUSED(png_ptr), png_const_charp message)
+{
+ // JS: deliver it to wx_png_warning and don't perform any more actions:
+ // libpng will jump back to the calling function (LoadFile and SaveFile)
+ // and allow it to handle the error
+ wx_png_warning(NULL, message);
+}
+