// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "imaggif.h"
#endif
bool wxGIFHandler::DoCanRead( wxInputStream& stream )
{
- wxGIFDecoder *decod;
- bool ok;
-
- decod = new wxGIFDecoder(&stream);
- ok = decod->CanRead();
- delete decod;
-
- return ok;
+ wxGIFDecoder decod(&stream);
+ return decod.CanRead();
}
#endif // wxUSE_STREAMS