diff --git a/source/lib/cache_adt.h b/source/lib/cache_adt.h index 8e68f28036..4e9f869bdc 100644 --- a/source/lib/cache_adt.h +++ b/source/lib/cache_adt.h @@ -222,7 +222,7 @@ private: // remove an item, all are charged according to MCD and their size; // entries are evicted if their credit is exhausted. accessing an entry // restores "some" of its credit. -template class McdCalc = McdCalc_Cached> +template class McdCalc = McdCalc_Cached> class Landlord { public: @@ -655,7 +655,7 @@ template < typename Key, typename Item, // see documentation above for Manager's interface. -template class Manager = Landlord_Cached, +template class Manager = Landlord_Cached, class Divider = Divider_Naive > class Cache diff --git a/source/maths/Fixed.h b/source/maths/Fixed.h index b1f170891d..51141649cd 100644 --- a/source/maths/Fixed.h +++ b/source/maths/Fixed.h @@ -307,7 +307,7 @@ namespace std * std::numeric_limits specialisation, currently just providing min and max */ template -class numeric_limits > +struct numeric_limits > { typedef CFixed fixed; public: diff --git a/source/ps/DllLoader.cpp b/source/ps/DllLoader.cpp index 0820e5e232..a083dc15e8 100644 --- a/source/ps/DllLoader.cpp +++ b/source/ps/DllLoader.cpp @@ -151,7 +151,7 @@ void DllLoader::LoadSymbolInternal(const char* name, void** fptr) const throw PSERROR_DllLoader_SymbolNotFound(); } -void DllLoader::OverrideLibdir(const CStr& libdir) +void DllLoader::OverrideLibdir(const char* libdir) { g_Libdir = libdir; } diff --git a/source/ps/DllLoader.h b/source/ps/DllLoader.h index 19d3c21154..d66c7b7a8e 100644 --- a/source/ps/DllLoader.h +++ b/source/ps/DllLoader.h @@ -71,7 +71,7 @@ public: /** * Override the build-time setting of the directory to search for libraries. */ - static void OverrideLibdir(const CStr& libdir); + static void OverrideLibdir(const char* libdir); private: // Typeless version - the public LoadSymbol hides the slightly ugly diff --git a/source/tools/atlas/wxJS/common/apiwrap.h b/source/tools/atlas/wxJS/common/apiwrap.h index 3687affb35..b6d2ae2ab7 100644 --- a/source/tools/atlas/wxJS/common/apiwrap.h +++ b/source/tools/atlas/wxJS/common/apiwrap.h @@ -790,8 +790,10 @@ JSClass wxjs::ApiWrapper::wxjs_class = { // CLASS MACROS -#define WXJS_INIT_CLASS(type, name, ctor) \ - template<> JSObject *type::TOBJECT::m_classProto = NULL; \ - template<> int type::TOBJECT::m_ctorArguments = ctor; \ - template<> const char* type::TOBJECT::m_jsClassName = name; +#define WXJS_INIT_CLASS(type, name, ctor) \ + namespace wxjs { \ + template<> JSObject *type::TOBJECT::m_classProto = NULL; \ + template<> int type::TOBJECT::m_ctorArguments = ctor; \ + template<> const char* type::TOBJECT::m_jsClassName = name; \ + } #endif // _JSOBJECT_H diff --git a/source/tools/atlas/wxJS/common/evtconn.h b/source/tools/atlas/wxJS/common/evtconn.h index c496c8e9a2..7266cae2a5 100644 --- a/source/tools/atlas/wxJS/common/evtconn.h +++ b/source/tools/atlas/wxJS/common/evtconn.h @@ -65,11 +65,16 @@ namespace wxjs }; #if (__GNUC__ >= 4) - #define WXJS_INIT_EVENT_MAP(class) template<> EventConnector::ConnectEventMap \ - EventConnector::m_eventMap = EventConnector::ConnectEventMap(); + #define WXJS_INIT_EVENT_MAP(class) \ + namespace wxjs { \ + template<> EventConnector::ConnectEventMap \ + EventConnector::m_eventMap = EventConnector::ConnectEventMap(); \ + } #else - #define WXJS_INIT_EVENT_MAP(class) EventConnector::ConnectEventMap \ - EventConnector::m_eventMap; + #define WXJS_INIT_EVENT_MAP(class) \ + namespace wxjs { \ + EventConnector::ConnectEventMap EventConnector::m_eventMap; \ + } #endif } // end namespace wxjs