summaryrefslogtreecommitdiff
path: root/sal/rtl/source/unload.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/rtl/source/unload.cxx')
-rw-r--r--sal/rtl/source/unload.cxx20
1 files changed, 20 insertions, 0 deletions
diff --git a/sal/rtl/source/unload.cxx b/sal/rtl/source/unload.cxx
index 18bedabc9bd9..0677ae6f8e2d 100644
--- a/sal/rtl/source/unload.cxx
+++ b/sal/rtl/source/unload.cxx
@@ -157,6 +157,19 @@ struct hashModule
}
};
+#ifdef USE_MSVC_HASH_MAP
+namespace stdext
+{
+ inline size_t hash_value( const oslModule& rkey)
+ {
+ return (size_t)rkey;
+ }
+}
+
+typedef std::hash_map<
+ oslModule,
+ std::pair<sal_uInt32, component_canUnloadFunc> > ModuleMap;
+#else
typedef std::hash_map<
oslModule,
std::pair<sal_uInt32, component_canUnloadFunc>,
@@ -164,6 +177,7 @@ typedef std::hash_map<
std::equal_to<oslModule>,
rtl::Allocator<oslModule>
> ModuleMap;
+#endif
typedef ModuleMap::iterator Mod_IT;
@@ -306,6 +320,11 @@ struct hashListener
}
};
+#ifdef USE_MSVC_HASH_MAP
+typedef std::hash_map<
+ sal_Int32,
+ std::pair<rtl_unloadingListenerFunc, void*> > ListenerMap;
+#else
typedef std::hash_map<
sal_Int32,
std::pair<rtl_unloadingListenerFunc, void*>,
@@ -313,6 +332,7 @@ typedef std::hash_map<
std::equal_to<sal_Int32>,
rtl::Allocator<sal_Int32>
> ListenerMap;
+#endif
typedef ListenerMap::iterator Lis_IT;