# include "wx/defs.h"
#endif
-#if wxUSE_STREAMS && wxUSE_GIF
+#if wxUSE_GIF
#include "wx/image.h"
#include "wx/gifdecod.h"
// wxGIFHandler
//-----------------------------------------------------------------------------
+#if wxUSE_STREAMS
+
bool wxGIFHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbose )
{
wxGIFDecoder *decod;
return ok;
}
-#endif // wxUSE_STREAMS && wxUSE_GIF
+#endif // wxUSE_STREAMS
+
+#endif // wxUSE_GIF
#include "wx/defs.h"
-#if wxUSE_STREAMS && wxUSE_LIBJPEG
+#if wxUSE_LIBJPEG
#include "wx/image.h"
#include "wx/bitmap.h"
IMPLEMENT_DYNAMIC_CLASS(wxJPEGHandler,wxImageHandler)
#endif
+#if wxUSE_STREAMS
+
//------------- JPEG Data Source Manager
typedef struct {
return (hdr[0] == 0xFF && hdr[1] == 0xD8);
}
-#endif // wxUSE_STREAMS && wxUSE_LIBJPEG
+#endif // wxUSE_STREAMS
+
+#endif // wxUSE_LIBJPEG
#include "wx/defs.h"
#endif
-#if wxUSE_STREAMS && wxUSE_LIBPNG
+#if wxUSE_LIBPNG
#include "wx/image.h"
#include "wx/bitmap.h"
IMPLEMENT_DYNAMIC_CLASS(wxPNGHandler,wxImageHandler)
#endif
+#if wxUSE_LIBPNG
+
#if defined(__VISAGECPP__)
#define LINKAGEMODE _Optlink
#else
return (hdr[0] == 0x89 && hdr[1] == 'P' && hdr[2] == 'N' && hdr[3] == 'G');
}
-#endif // wxUSE_STREAMS && wxUSE_LIBPNG
+#endif // wxUSE_STREAMS
+#endif // wxUSE_LIBPNG
# include "wx/setup.h"
#endif
-#if wxUSE_STREAMS && wxUSE_PNM
+#if wxUSE_PNM
#include "wx/image.h"
#include "wx/log.h"
IMPLEMENT_DYNAMIC_CLASS(wxPNMHandler,wxImageHandler)
#endif
+#if wxUSE_STREAMS
void Skip_Comment(wxInputStream &stream)
{
}
-#endif // wxUSE_STREAMS && wxUSE_PNM
+#endif // wxUSE_STREAMS
+#endif // wxUSE_PNM