Skip to content

Instantly share code, notes, and snippets.

@springmeyer
Created May 6, 2013 19:44
Show Gist options
  • Save springmeyer/5527606 to your computer and use it in GitHub Desktop.
Save springmeyer/5527606 to your computer and use it in GitHub Desktop.
make the mapnik singleton publicly visible
diff --git a/include/mapnik/utils.hpp b/include/mapnik/utils.hpp
index 24a5d3d..01cf84a 100644
--- a/include/mapnik/utils.hpp
+++ b/include/mapnik/utils.hpp
@@ -23,6 +23,8 @@
#ifndef MAPNIK_UTILS_HPP
#define MAPNIK_UTILS_HPP
+#include <mapnik/config.hpp>
+
// boost
#ifdef MAPNIK_THREADSAFE
#include <boost/thread/mutex.hpp>
@@ -93,7 +95,7 @@ public:
};
template <typename T,
- template <typename U> class CreatePolicy=CreateStatic> class singleton
+ template <typename U> class CreatePolicy=CreateStatic> class MAPNIK_DECL singleton
{
#ifdef __SUNPRO_CC
/* Sun's C++ compiler will issue the following errors if CreatePolicy<T> is used:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment