X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/79fa23744b2c622ebe9ff89a3ee8c8ec8017ee3b..4c200e8d87728306b219822d9c07e28526cd8649:/src/common/imagtiff.cpp diff --git a/src/common/imagtiff.cpp b/src/common/imagtiff.cpp index 48ca43ab98..741bc36472 100644 --- a/src/common/imagtiff.cpp +++ b/src/common/imagtiff.cpp @@ -47,6 +47,8 @@ extern "C" IMPLEMENT_DYNAMIC_CLASS(wxTIFFHandler,wxImageHandler) +#if wxUSE_STREAMS + extern "C" { @@ -373,14 +375,11 @@ bool wxTIFFHandler::DoCanRead( wxInputStream& stream ) if ( !stream.Read(&hdr, WXSIZEOF(hdr)) ) return FALSE; - stream.SeekI(-WXSIZEOF(hdr), wxFromCurrent); - return (hdr[0] == 'I' && hdr[1] == 'I') || (hdr[0] == 'M' && hdr[1] == 'M'); } +#endif // wxUSE_STREAMS -#endif - // wxUSE_LIBTIFF - +#endif // wxUSE_LIBTIFF