dodge linking error with image_data on windows - refs #2396
This commit is contained in:
parent
6074e87bbb
commit
8e8bc6c745
1 changed files with 7 additions and 6 deletions
|
@ -21,14 +21,15 @@ int main(int argc, char** argv)
|
|||
boost::optional<std::string> type;
|
||||
try
|
||||
{
|
||||
#if !defined(_MSC_VER)
|
||||
mapnik::image_data_32 im(256,256);
|
||||
unsigned char* bytes = im.getBytes();
|
||||
mapnik::image_data_32 * im_ptr = new mapnik::image_data_32(im.width(),im.height(),static_cast<mapnik::image_data_32::pixel_type *>(bytes));
|
||||
unsigned char* same_bytes = im_ptr->getBytes();
|
||||
BOOST_TEST(bytes == same_bytes);
|
||||
mapnik::image_data_32::pixel_type * data = im.getData();
|
||||
mapnik::image_data_32 * im_ptr = new mapnik::image_data_32(im.width(),im.height(),data);
|
||||
mapnik::image_data_32::pixel_type * same_data = im_ptr->getData();
|
||||
BOOST_TEST(data == same_data);
|
||||
delete im_ptr;
|
||||
BOOST_TEST(bytes == same_bytes);
|
||||
|
||||
BOOST_TEST(data == same_data);
|
||||
#endif
|
||||
BOOST_TEST(set_working_dir(args));
|
||||
|
||||
#if defined(HAVE_JPEG)
|
||||
|
|
Loading…
Reference in a new issue