Permalink
Browse files

fix for mapnik 2.1.x which does support mapnik::grid::base_mask

  • Loading branch information...
1 parent 6514546 commit e0fd94ed26edee8817a1f1809be4bd5a7ebb7edd Dane Springmeyer committed Dec 11, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/mapnik_grid.cpp
View
@@ -41,10 +41,10 @@ void Grid::Initialize(Handle<Object> target) {
ATTR(constructor, "key", get_prop, set_prop);
target->Set(String::NewSymbol("Grid"),constructor->GetFunction());
-#if MAPNIK_VERSION >= 200200
- NODE_MAPNIK_DEFINE_CONSTANT(constructor->GetFunction(), "base_mask", mapnik::grid::base_mask);
-#else
+#if MAPNIK_VERSION < 200100
NODE_MAPNIK_DEFINE_CONSTANT(constructor->GetFunction(), "base_mask", 0);
+#else
+ NODE_MAPNIK_DEFINE_CONSTANT(constructor->GetFunction(), "base_mask", mapnik::grid::base_mask);
#endif
}

0 comments on commit e0fd94e

Please sign in to comment.