X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1044a386f0521b9b805b142547783acb96d1a406..b9b3ccd9ea9bf892369a6fa2c8e28e0ceca18527:/src/common/imagpcx.cpp diff --git a/src/common/imagpcx.cpp b/src/common/imagpcx.cpp index e10679ec8b..2c29b90489 100644 --- a/src/common/imagpcx.cpp +++ b/src/common/imagpcx.cpp @@ -20,12 +20,17 @@ #pragma hdrstop #endif +#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" -#if wxUSE_PCX //----------------------------------------------------------------------------- // PCX decoding @@ -217,8 +222,6 @@ int ReadPCX(wxImage *image, wxInputStream& stream) IMPLEMENT_DYNAMIC_CLASS(wxPCXHandler,wxImageHandler) #endif -#if wxUSE_STREAMS - bool wxPCXHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbose ) { int error; @@ -274,7 +277,5 @@ bool wxPCXHandler::CanRead( wxInputStream& stream ) return (c == 10); } -#endif // wxUSE_STREAMS - -#endif // wxUSE_PCX +#endif // wxUSE_STREAMS && wxUSE_PCX