Fixes for STLPort 4.1b6,

and for gcc on platforms with <sys/type.h>


[SVN r10089]
This commit is contained in:
John Maddock
2001-05-11 10:50:06 +00:00
parent efd0ce56bc
commit 08cee9a2a6
7 changed files with 87 additions and 133 deletions

View File

@ -306,11 +306,14 @@ struct debug_iterator
}
};
#if defined(__SGI_STL_PORT)
#if defined(__SGI_STL_PORT)
namespace std{
template <class T>
inline random_access_iterator_tag __STL_CALL
__ITERATOR_CATEGORY(const debug_iterator<T>&) {
#if __SGI_STL_PORT <= 0x400
inline random_access_iterator_tag __STL_CALL __ITERATOR_CATEGORY(const debug_iterator<T>&) {
#else
inline random_access_iterator_tag __iterator_category(const debug_iterator<T>&) {
#endif
return random_access_iterator_tag();
}
}