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;