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
This commit is contained in:
parent
f528e1ad7a
commit
59160ac740
@ -64,12 +64,22 @@ All rights reserved.
|
|||||||
class BRefFilter;
|
class BRefFilter;
|
||||||
class BList;
|
class BList;
|
||||||
|
|
||||||
__STL_TEMPLATE_NULL struct std::hash<node_ref>
|
#if __GNUC__ > 2
|
||||||
|
namespace __gnu_cxx {
|
||||||
|
template<>
|
||||||
|
struct hash<node_ref>
|
||||||
|
#else
|
||||||
|
template<>
|
||||||
|
struct std::hash<node_ref>
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
size_t operator()(node_ref ref) const {
|
size_t operator()(node_ref ref) const {
|
||||||
return ref.node;
|
return ref.node;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
#if __GNUC__ > 2
|
||||||
|
} // namespace __gnu_cxx
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
namespace BPrivate {
|
namespace BPrivate {
|
||||||
@ -608,7 +618,11 @@ class BPoseView : public BView {
|
|||||||
PoseList *fPoseList;
|
PoseList *fPoseList;
|
||||||
PoseList *fVSPoseList;
|
PoseList *fVSPoseList;
|
||||||
PoseList *fSelectionList;
|
PoseList *fSelectionList;
|
||||||
|
#if __GNUC__ > 2
|
||||||
|
__gnu_cxx::hash_set<node_ref, __gnu_cxx::hash<node_ref> > fInsertedNodes;
|
||||||
|
#else
|
||||||
std::hash_set<node_ref, std::hash<node_ref> > fInsertedNodes;
|
std::hash_set<node_ref, std::hash<node_ref> > fInsertedNodes;
|
||||||
|
#endif
|
||||||
BObjectList<BString> fMimeTypesInSelectionCache;
|
BObjectList<BString> fMimeTypesInSelectionCache;
|
||||||
// used for mime string based icon highliting during a drag
|
// used for mime string based icon highliting during a drag
|
||||||
BObjectList<Model> *fZombieList;
|
BObjectList<Model> *fZombieList;
|
||||||
|
Loading…
Reference in New Issue
Block a user