diff --git a/src/common/imagpng.cpp b/src/common/imagpng.cpp index f5f0d82924..41b1378528 100644 --- a/src/common/imagpng.cpp +++ b/src/common/imagpng.cpp @@ -522,7 +522,7 @@ wxPNGHandler::LoadFile(wxImage *image, png_structp png_ptr = png_create_read_struct ( PNG_LIBPNG_VER_STRING, - (voidp) NULL, + NULL, wx_png_error, wx_png_warning );