From 59160ac74037d1d689e22ca374b430dd4e2cdd88 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Sat, 7 Mar 2009 00:48:00 +0000 Subject: [PATCH] Fix gcc4 build. GCC 3 and up moved some of the SGI extension classes into a different namespace. Fixes ticket #3524. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29418 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/tracker/PoseView.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/kits/tracker/PoseView.h b/src/kits/tracker/PoseView.h index 513dcd576f..9be905861d 100644 --- a/src/kits/tracker/PoseView.h +++ b/src/kits/tracker/PoseView.h @@ -64,12 +64,22 @@ All rights reserved. class BRefFilter; class BList; -__STL_TEMPLATE_NULL struct std::hash +#if __GNUC__ > 2 +namespace __gnu_cxx { +template<> +struct hash +#else +template<> +struct std::hash +#endif { size_t operator()(node_ref ref) const { return ref.node; } }; +#if __GNUC__ > 2 +} // namespace __gnu_cxx +#endif namespace BPrivate { @@ -608,7 +618,11 @@ class BPoseView : public BView { PoseList *fPoseList; PoseList *fVSPoseList; PoseList *fSelectionList; +#if __GNUC__ > 2 + __gnu_cxx::hash_set > fInsertedNodes; +#else std::hash_set > fInsertedNodes; +#endif BObjectList fMimeTypesInSelectionCache; // used for mime string based icon highliting during a drag BObjectList *fZombieList;