+ support building with < 1.34 (e.g. 1.33.1) boost libraries
This commit is contained in:
parent
8b298729bf
commit
5b5eb9d2ee
1 changed files with 10 additions and 1 deletions
|
@ -27,6 +27,7 @@
|
|||
#include <mapnik/config_error.hpp>
|
||||
|
||||
// boost
|
||||
#include <boost/version.hpp>
|
||||
#include <boost/filesystem/operations.hpp>
|
||||
#include <boost/algorithm/string.hpp>
|
||||
|
||||
|
@ -121,11 +122,19 @@ namespace mapnik
|
|||
#endif
|
||||
filesystem::path path(str);
|
||||
filesystem::directory_iterator end_itr;
|
||||
|
||||
|
||||
if (exists(path) && is_directory(path))
|
||||
{
|
||||
for (filesystem::directory_iterator itr(path);itr!=end_itr;++itr )
|
||||
{
|
||||
if (!is_directory( *itr ) && is_input_plugin(itr->path().leaf()))
|
||||
|
||||
#if BOOST_VERSION < 103400
|
||||
if (!is_directory( *itr ) && is_input_plugin(itr->leaf()))
|
||||
#else
|
||||
if (!is_directory( *itr ) && is_input_plugin(itr->path().leaf()))
|
||||
#endif
|
||||
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue