Commit b78345c7 authored by bitplane's avatar bitplane

Fix for compiling with image writers but without loaders

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2235 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 74e456a1
...@@ -7,8 +7,6 @@ ...@@ -7,8 +7,6 @@
#include "IrrCompileConfig.h" #include "IrrCompileConfig.h"
#ifdef _IRR_COMPILE_WITH_BMP_LOADER_
#include "IImageLoader.h" #include "IImageLoader.h"
...@@ -17,6 +15,8 @@ namespace irr ...@@ -17,6 +15,8 @@ namespace irr
namespace video namespace video
{ {
#if defined(_IRR_COMPILE_WITH_BMP_LOADER_) || defined(_IRR_COMPILE_WITH_BMP_WRITER_)
// byte-align structures // byte-align structures
#if defined(_MSC_VER) || defined(__BORLANDC__) || defined (__BCPLUSPLUS__) #if defined(_MSC_VER) || defined(__BORLANDC__) || defined (__BCPLUSPLUS__)
...@@ -72,6 +72,9 @@ namespace video ...@@ -72,6 +72,9 @@ namespace video
#undef PACK_STRUCT #undef PACK_STRUCT
#endif // defined with loader or writer
#ifdef _IRR_COMPILE_WITH_BMP_LOADER_
/*! /*!
Surface Loader for Windows bitmaps Surface Loader for Windows bitmaps
...@@ -101,10 +104,10 @@ private: ...@@ -101,10 +104,10 @@ private:
}; };
#endif // compiled with loader
} // end namespace video } // end namespace video
} // end namespace irr } // end namespace irr
#endif
#endif #endif
...@@ -7,8 +7,6 @@ ...@@ -7,8 +7,6 @@
#include "IrrCompileConfig.h" #include "IrrCompileConfig.h"
#ifdef _IRR_COMPILE_WITH_PCX_LOADER_
#include "IImageLoader.h" #include "IImageLoader.h"
namespace irr namespace irr
...@@ -16,6 +14,7 @@ namespace irr ...@@ -16,6 +14,7 @@ namespace irr
namespace video namespace video
{ {
#if defined(_IRR_COMPILE_WITH_PCX_LOADER_) || defined(_IRR_COMPILE_WITH_PCX_WRITER_)
// byte-align structures // byte-align structures
#if defined(_MSC_VER) || defined(__BORLANDC__) || defined (__BCPLUSPLUS__) #if defined(_MSC_VER) || defined(__BORLANDC__) || defined (__BCPLUSPLUS__)
...@@ -58,6 +57,9 @@ namespace video ...@@ -58,6 +57,9 @@ namespace video
#undef PACK_STRUCT #undef PACK_STRUCT
#endif // compile with loader or writer
#ifdef _IRR_COMPILE_WITH_PCX_LOADER_
/*! /*!
Image Loader for Windows PCX bitmaps. Image Loader for Windows PCX bitmaps.
...@@ -83,10 +85,10 @@ public: ...@@ -83,10 +85,10 @@ public:
}; };
#endif // compile with loader
} // end namespace video } // end namespace video
} // end namespace irr } // end namespace irr
#endif #endif
#endif
...@@ -7,8 +7,6 @@ ...@@ -7,8 +7,6 @@
#include "IrrCompileConfig.h" #include "IrrCompileConfig.h"
#ifdef _IRR_COMPILE_WITH_TGA_LOADER_
#include "IImageLoader.h" #include "IImageLoader.h"
...@@ -17,6 +15,7 @@ namespace irr ...@@ -17,6 +15,7 @@ namespace irr
namespace video namespace video
{ {
#if defined(_IRR_COMPILE_WITH_TGA_LOADER_) || defined(_IRR_COMPILE_WITH_TGA_WRITER_)
// byte-align structures // byte-align structures
#if defined(_MSC_VER) || defined(__BORLANDC__) || defined (__BCPLUSPLUS__) #if defined(_MSC_VER) || defined(__BORLANDC__) || defined (__BCPLUSPLUS__)
...@@ -59,6 +58,10 @@ namespace video ...@@ -59,6 +58,10 @@ namespace video
#undef PACK_STRUCT #undef PACK_STRUCT
#endif // compiled with loader or reader
#ifdef _IRR_COMPILE_WITH_TGA_LOADER_
/*! /*!
Surface Loader for targa images Surface Loader for targa images
*/ */
...@@ -82,10 +85,10 @@ private: ...@@ -82,10 +85,10 @@ private:
u8* loadCompressedImage(io::IReadFile *file, const STGAHeader& header) const; u8* loadCompressedImage(io::IReadFile *file, const STGAHeader& header) const;
}; };
#endif // compiled with loader
} // end namespace video } // end namespace video
} // end namespace irr } // end namespace irr
#endif #endif
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment