# include <fstream>
#endif
-#define INCL_DOS
-#define INCL_PM
-#define INCL_GPI
-#include <os2.h>
#include "wx/palette.h"
#include "wx/bitmap.h"
#include "wx/utils.h"
+
+#define INCL_PM
+#include <os2.h>
+
#include "wx/os2/pngread.h"
extern "C" {
#endif
-void
-ima_png_error(png_struct *png_ptr, char *message)
+void ima_png_error(png_struct *png_ptr, char *message)
{
// wxMessageBox(message, "PNG error");
IMPLEMENT_DYNAMIC_CLASS(wxPNGFileHandler, wxBitmapHandler)
-bool wxPNGFileHandler::LoadFile(wxBitmap *bitmap, const wxString& name, long flags,
+bool wxPNGFileHandler::LoadFile(wxBitmap *bitmap, const wxString& name, HPS hPs, long flags,
int desiredWidth, int desiredHeight)
{
wxPNGReader reader;