X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/22e90769f8da73d398bd7da83f185263a292972f..0e448231102ecab3ce01647e98ec156f7bf5b8bb:/src/os2/gdiimage.cpp diff --git a/src/os2/gdiimage.cpp b/src/os2/gdiimage.cpp index d4357d6331..dcb5e1d4df 100644 --- a/src/os2/gdiimage.cpp +++ b/src/os2/gdiimage.cpp @@ -30,9 +30,8 @@ #endif // WX_PRECOMP #include "wx/os2/private.h" - #include "wx/app.h" - +#include "wx/xpmhand.h" #include "wx/os2/gdiimage.h" // ---------------------------------------------------------------------------- @@ -335,7 +334,9 @@ void wxGDIImage::CleanUpHandlers() wxNode* pNext = pNode->Next(); delete pHandler; +#if (!(defined(__VISAGECPP__) && (__IBMCPP__ < 400 || __IBMC__ < 400 ))) delete pNode; +#endif pNode = pNext; } } @@ -345,10 +346,10 @@ void wxGDIImage::InitStandardHandlers() AddHandler(new wxBMPResourceHandler); AddHandler(new wxBMPFileHandler); - // Not added by default: include xpmhand.h in your app - // and call these in your wxApp::OnInit. - // AddHandler(new wxXPMFileHandler); - // AddHandler(new wxXPMDataHandler); +#if wxUSE_XPM_IN_OS2 + AddHandler(new wxXPMFileHandler); + AddHandler(new wxXPMDataHandler); +#endif AddHandler(new wxICOResourceHandler); AddHandler(new wxICOFileHandler);