X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c4e7c2aa5822f9a6e97d8d7848b95ea2eadcd98b..9838df2cefc5b368bb11f98c784ecc78f45ecaf7:/src/msw/pnghand.cpp diff --git a/src/msw/pnghand.cpp b/src/msw/pnghand.cpp index 2fb019783b..2f82fa3e10 100644 --- a/src/msw/pnghand.cpp +++ b/src/msw/pnghand.cpp @@ -24,8 +24,19 @@ #include #include #include + +#if wxUSE_IOSTREAMH #include +#else +#include +# ifdef _MSC_VER + using namespace std; +# endif +#endif + #include +#include +#include #include #include @@ -113,7 +124,11 @@ wxPNGReader::Create(int width, int height, int depth, int colortype) ColorType = (colortype>=0) ? colortype: ((Depth>8) ? COLORTYPE_COLOR: 0); if (lpbi) { +#ifdef __WIN16__ + GlobalFreePtr((unsigned int) lpbi); +#else GlobalFreePtr(lpbi); +#endif // delete Palette; } RawImage = 0; @@ -128,7 +143,11 @@ wxPNGReader::Create(int width, int height, int depth, int colortype) wxPNGReader::~wxPNGReader ( ) { if (lpbi) { +#ifdef __WIN16__ + GlobalFreePtr((unsigned int) lpbi); +#else GlobalFreePtr(lpbi); +#endif delete Palette; } }