]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/imaggif.cpp
Made .dsp files consistent with debug option; added JPEG project file
[wxWidgets.git] / src / common / imaggif.cpp
index 7b3e5ba0df582ee1596d50802d092ba5e55543da..32f0539bc22395b2117abec3e6adda227c76426b 100644 (file)
@@ -23,7 +23,7 @@
 #  include "wx/defs.h"
 #endif
 
-#if wxUSE_STREAMS && wxUSE_GIF
+#if wxUSE_GIF
 
 #include "wx/image.h"
 #include "wx/gifdecod.h"
@@ -38,6 +38,8 @@ IMPLEMENT_DYNAMIC_CLASS(wxGIFHandler,wxImageHandler)
 // wxGIFHandler
 //-----------------------------------------------------------------------------
 
+#if wxUSE_STREAMS
+
 bool wxGIFHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbose )
 {
     wxGIFDecoder *decod;
@@ -52,9 +54,9 @@ bool wxGIFHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbose
         {
             switch (error)
             {
-                case E_FORMATO: wxLogError(_T("wxGIFHandler: error in image format")); break;
-                case E_MEMORIA: wxLogError(_T("wxGIFHandler: couldn't allocate memory")); break;
-                default:        wxLogError(_T("wxGIFHandler: unknown error !!!"));
+                case E_FORMATO: wxLogError(T("wxGIFHandler: error in image format")); break;
+                case E_MEMORIA: wxLogError(T("wxGIFHandler: couldn't allocate memory")); break;
+                default:        wxLogError(T("wxGIFHandler: unknown error !!!"));
             }
         }
         delete decod;
@@ -72,7 +74,7 @@ bool wxGIFHandler::SaveFile( wxImage * WXUNUSED(image),
                              wxOutputStream& WXUNUSED(stream), bool verbose )
 {
     if (verbose)
-        wxLogDebug(_T("wxGIFHandler is read-only!!"));
+        wxLogDebug(T("wxGIFHandler is read-only!!"));
 
     return FALSE;
 }
@@ -89,4 +91,6 @@ bool wxGIFHandler::CanRead( wxInputStream& stream )
     return ok;
 }
 
-#endif  // wxUSE_STREAMS && wxUSE_GIF
+#endif  // wxUSE_STREAMS
+
+#endif  // wxUSE_GIF