windows build fixes in palette and miniz_png headers
This commit is contained in:
parent
34f1cc57c0
commit
4c4ce5a04c
2 changed files with 16 additions and 3 deletions
|
@ -32,6 +32,10 @@
|
|||
#include <iostream>
|
||||
#include <stdexcept>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#include <mapnik/graphics.hpp>
|
||||
#endif
|
||||
|
||||
/* miniz.c porting issues:
|
||||
- duplicate symbols in python bindings require moving miniz.c include to just cpp file
|
||||
- due to http://code.google.com/p/miniz/issues/detail?id=7
|
||||
|
@ -80,6 +84,15 @@ private:
|
|||
static const unsigned char IEND_tpl[];
|
||||
};
|
||||
|
||||
#ifdef _MSC_VER
|
||||
template MAPNIK_DECL void PNGWriter::writeIDAT<image_data_8>(image_data_8 const& image);
|
||||
template MAPNIK_DECL void PNGWriter::writeIDAT<image_view<image_data_8> >(image_view<image_data_8> const& image);
|
||||
template MAPNIK_DECL void PNGWriter::writeIDAT<image_data_32>(image_data_32 const& image);
|
||||
template MAPNIK_DECL void PNGWriter::writeIDAT<image_view<image_data_32> >(image_view<image_data_32> const& image);
|
||||
template MAPNIK_DECL void PNGWriter::writeIDATStripAlpha<image_data_32>(image_data_32 const& image);
|
||||
template MAPNIK_DECL void PNGWriter::writeIDATStripAlpha<image_view<image_data_32> >(image_view<image_data_32> const& image);
|
||||
#endif
|
||||
|
||||
}}
|
||||
|
||||
#endif // MAPNIK_MINIZ_PNG_HPP
|
||||
|
|
|
@ -58,7 +58,7 @@ namespace mapnik {
|
|||
|
||||
struct rgba;
|
||||
|
||||
struct rgb {
|
||||
struct MAPNIK_DECL rgb {
|
||||
byte r;
|
||||
byte g;
|
||||
byte b;
|
||||
|
@ -72,7 +72,7 @@ struct rgb {
|
|||
}
|
||||
};
|
||||
|
||||
struct rgba
|
||||
struct MAPNIK_DECL rgba
|
||||
{
|
||||
byte r;
|
||||
byte g;
|
||||
|
@ -103,7 +103,7 @@ struct rgba
|
|||
}
|
||||
|
||||
// ordering by mean(a,r,g,b), a, r, g, b
|
||||
struct mean_sort_cmp
|
||||
struct MAPNIK_DECL mean_sort_cmp
|
||||
{
|
||||
bool operator() (const rgba& x, const rgba& y) const;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue