X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e207152c5975dd772c9e868e5095d581b2a4a303..58c7cd12b9035450e702d36dfdce63bfd008bcd0:/src/common/imaggif.cpp diff --git a/src/common/imaggif.cpp b/src/common/imaggif.cpp index a4ac73ba75..4977856f2a 100644 --- a/src/common/imaggif.cpp +++ b/src/common/imaggif.cpp @@ -6,24 +6,30 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation "imaggif.h" -#endif +/* + We don't put pragma implement in this file because it is already present in + src/common/image.cpp +*/ // For compilers that support precompilation, includes "wx.h". #include #ifdef __BORLANDC__ -#pragma hdrstop + #pragma hdrstop #endif -#include +#ifndef WX_PRECOMP + #include "wx/defs.h" +#endif -#include -#include -#include +#include "wx/image.h" +#include "wx/wfstream.h" +#include "wx/module.h" +#include "wx/log.h" -#include +IMPLEMENT_DYNAMIC_CLASS(wxGIFHandler,wxImageHandler) + +#if wxUSE_STREAMS /* @@ -361,8 +367,6 @@ FOLLOWING CODE IS BY V.S. : // wxGIFHandler //----------------------------------------------------------------------------- -IMPLEMENT_DYNAMIC_CLASS(wxGIFHandler,wxImageHandler) - bool wxGIFHandler::LoadFile( wxImage *image, wxInputStream& stream ) { unsigned char *ptr, *src, *pal; @@ -375,7 +379,7 @@ bool wxGIFHandler::LoadFile( wxImage *image, wxInputStream& stream ) decod = new gifDecoder(&stream); if (decod->readgif(&igif) != E_OK) { - wxLogDebug("Error reading GIF"); + wxLogDebug(_T("Error reading GIF")); delete decod; return FALSE; } @@ -413,14 +417,11 @@ bool wxGIFHandler::LoadFile( wxImage *image, wxInputStream& stream ) return TRUE; } -bool wxGIFHandler::SaveFile( wxImage *image, wxOutputStream& stream ) +bool wxGIFHandler::SaveFile( wxImage * WXUNUSED(image), + wxOutputStream& WXUNUSED(stream) ) { - wxLogDebug("wxGIFHandler is read-only!!"); + wxLogDebug(_T("wxGIFHandler is read-only!!")); return FALSE; } - - - - - +#endif