]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/imagtiff.cpp
moving string conversions at one place
[wxWidgets.git] / src / common / imagtiff.cpp
index 48ca43ab9856c737e2980d08925d94970610ff79..741bc364723fdc2940dc672f5b1543413b730f7c 100644 (file)
@@ -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