Skip to content

Commit

Permalink
add compile time warning if building against proj < 4.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer committed Apr 11, 2012
1 parent f5da52b commit 1941a70
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/projection.cpp
Expand Up @@ -33,19 +33,20 @@
namespace mapnik {

#if defined(MAPNIK_THREADSAFE) && PJ_VERSION < 480
#warning mapnik is building against < proj 4.8, reprojection will be faster if you use >= 4.8
boost::mutex projection::mutex_;
#endif

projection::projection(std::string const& params)
: params_(params)
{
init(); //
init();
}

projection::projection(projection const& rhs)
: params_(rhs.params_)
{
init(); //
init();
}

projection& projection::operator=(projection const& rhs)
Expand Down Expand Up @@ -158,9 +159,9 @@ std::string projection::expanded() const
return std::string("");
}

void projection::swap (projection& rhs)
void projection::swap(projection& rhs)
{
std::swap(params_,rhs.params_);
init ();
init();
}
}

0 comments on commit 1941a70

Please sign in to comment.