diff --git a/include/mapnik/utils.hpp b/include/mapnik/utils.hpp index 24a5d3d54..f8e5426e6 100644 --- a/include/mapnik/utils.hpp +++ b/include/mapnik/utils.hpp @@ -81,12 +81,8 @@ public: static MaxAlign staticMemory; return new(&staticMemory) T; } -#ifdef __SUNPRO_CC - // Sun C++ Compiler doesn't handle `volatile` keyword same as GCC. - static void destroy(T* obj) -#else + static void destroy(volatile T* obj) -#endif { obj->~T(); } @@ -95,15 +91,7 @@ public: template class CreatePolicy=CreateStatic> class singleton { -#ifdef __SUNPRO_CC - /* Sun's C++ compiler will issue the following errors if CreatePolicy is used: - Error: A class template name was expected instead of mapnik::CreatePolicy - Error: A "friend" declaration must specify a class or function. - */ - friend class CreatePolicy; -#else friend class CreatePolicy; -#endif static T* pInstance_; static bool destroyed_; singleton(const singleton &rhs);