+// CanRead:
+// Returns TRUE if the file looks like a valid GIF, FALSE otherwise.
+//
+bool wxGIFDecoder::CanRead()
+{
+ unsigned char buf[3];
+ off_t pos;
+
+ pos = m_f->TellI();
+ m_f->SeekI(0, wxFromStart);
+ m_f->Read(buf, 3);
+ m_f->SeekI(pos, wxFromStart);
+
+ return (memcmp(buf, "GIF", 3) == 0);
+}
+
+