wxUSE_***
Merged wxUSE_*** and wxUSE_STREAM (is this right?)
Replaced wxUSE_LIBGIF with wxUSE_GIF everywhere
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3595
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
# include "wx/defs.h"
#endif
# include "wx/defs.h"
#endif
+#if wxUSE_STREAMS && wxUSE_GIF
#include "wx/image.h"
#include "wx/gifdecod.h"
#include "wx/image.h"
#include "wx/gifdecod.h"
IMPLEMENT_DYNAMIC_CLASS(wxGIFHandler,wxImageHandler)
#endif
IMPLEMENT_DYNAMIC_CLASS(wxGIFHandler,wxImageHandler)
#endif
//-----------------------------------------------------------------------------
// wxGIFHandler
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// wxGIFHandler
//-----------------------------------------------------------------------------
-#endif
- // wxUSE_STREAMS
-
-#endif
- // wxUSE_LIBGIF
+#endif // wxUSE_STREAMS && wxUSE_GIF
+#if wxUSE_STREAMS && wxUSE_LIBJPEG
#include "wx/image.h"
#include "wx/bitmap.h"
#include "wx/image.h"
#include "wx/bitmap.h"
IMPLEMENT_DYNAMIC_CLASS(wxJPEGHandler,wxImageHandler)
#endif
IMPLEMENT_DYNAMIC_CLASS(wxJPEGHandler,wxImageHandler)
#endif
//------------- JPEG Data Source Manager
typedef struct {
//------------- JPEG Data Source Manager
typedef struct {
return (hdr[0] == 0xFF && hdr[1] == 0xD8);
}
return (hdr[0] == 0xFF && hdr[1] == 0xD8);
}
-#endif
- // wxUSE_STREAMS
-
-#endif
- // wxUSE_LIBJPEG
+#endif // wxUSE_STREAMS && wxUSE_LIBJPEG
+#ifndef WX_PRECOMP
+# include "wx/defs.h"
+#endif
+
+#if wxUSE_STREAMS && wxUSE_PCX
+
#include "wx/image.h"
#include "wx/wfstream.h"
#include "wx/module.h"
#include "wx/log.h"
#include "wx/image.h"
#include "wx/wfstream.h"
#include "wx/module.h"
#include "wx/log.h"
//-----------------------------------------------------------------------------
// PCX decoding
//-----------------------------------------------------------------------------
// PCX decoding
IMPLEMENT_DYNAMIC_CLASS(wxPCXHandler,wxImageHandler)
#endif
IMPLEMENT_DYNAMIC_CLASS(wxPCXHandler,wxImageHandler)
#endif
bool wxPCXHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbose )
{
int error;
bool wxPCXHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbose )
{
int error;
-#endif // wxUSE_STREAMS
-
-#endif // wxUSE_PCX
+#endif // wxUSE_STREAMS && wxUSE_PCX
#include "wx/defs.h"
#endif
#include "wx/defs.h"
#endif
+#if wxUSE_STREAMS && wxUSE_LIBPNG
#include "wx/image.h"
#include "wx/bitmap.h"
#include "wx/image.h"
#include "wx/bitmap.h"
IMPLEMENT_DYNAMIC_CLASS(wxPNGHandler,wxImageHandler)
#endif
IMPLEMENT_DYNAMIC_CLASS(wxPNGHandler,wxImageHandler)
#endif
#if defined(__VISAGECPP__)
#define LINKAGEMODE _Optlink
#else
#if defined(__VISAGECPP__)
#define LINKAGEMODE _Optlink
#else
return (hdr[0] == 0x89 && hdr[1] == 'P' && hdr[2] == 'N' && hdr[3] == 'G');
}
return (hdr[0] == 0x89 && hdr[1] == 'P' && hdr[2] == 'N' && hdr[3] == 'G');
}
-#endif
- // wxUSE_STREAMS
-
-#endif
- // wxUSE_LIBPNG
+#endif // wxUSE_STREAMS && wxUSE_LIBPNG
+#ifndef WX_PRECOMP
+# include "wx/setup.h"
+#endif
+
+#if wxUSE_STREAMS && wxUSE_PNM
+
#include "wx/image.h"
#include "wx/log.h"
#include "wx/txtstrm.h"
#include "wx/image.h"
#include "wx/log.h"
#include "wx/txtstrm.h"
-#if wxUSE_PNM
-
-#ifdef __WXMSW__
-#include <windows.h>
-#endif
-
//-----------------------------------------------------------------------------
// wxBMPHandler
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// wxBMPHandler
//-----------------------------------------------------------------------------
IMPLEMENT_DYNAMIC_CLASS(wxPNMHandler,wxImageHandler)
#endif
IMPLEMENT_DYNAMIC_CLASS(wxPNMHandler,wxImageHandler)
#endif
-#if wxUSE_STREAMS
-
-//#include <stream.h> // for cout
void Skip_Comment(wxInputStream &stream)
{
void Skip_Comment(wxInputStream &stream)
{
-#endif // wxUSE_STREAMS
-
-#endif // wxUSE_PNM
+#endif // wxUSE_STREAMS && wxUSE_PNM