X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/79fa23744b2c622ebe9ff89a3ee8c8ec8017ee3b..a01fe3d6d24dcecdd1c7e27fd9499a96cf8cec5e:/src/common/gifdecod.cpp diff --git a/src/common/gifdecod.cpp b/src/common/gifdecod.cpp index f7acdfb4e6..229050812f 100644 --- a/src/common/gifdecod.cpp +++ b/src/common/gifdecod.cpp @@ -21,6 +21,7 @@ #ifndef WX_PRECOMP # include "wx/defs.h" +# include "wx/palette.h" #endif #if wxUSE_STREAMS && wxUSE_GIF @@ -620,7 +621,7 @@ bool wxGIFDecoder::CanRead() if ( !m_f->Read(buf, WXSIZEOF(buf)) ) return FALSE; - m_f->SeekI(-WXSIZEOF(buf), wxFromCurrent); + m_f->SeekI(-(off_t)WXSIZEOF(buf), wxFromCurrent); return memcmp(buf, "GIF", WXSIZEOF(buf)) == 0; }