Created
May 6, 2013 19:44
-
-
Save springmeyer/5527606 to your computer and use it in GitHub Desktop.
make the mapnik singleton publicly visible
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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