From f7b84b6718626a88bd200fb65e320d9eef2b2c8e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 24 Jul 2002 20:44:02 +0000 Subject: *** empty log message *** llvm-svn: 3053 --- llvm/include/llvm/Type.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'llvm') diff --git a/llvm/include/llvm/Type.h b/llvm/include/llvm/Type.h index e7a192bac95..99e038af8fb 100644 --- a/llvm/include/llvm/Type.h +++ b/llvm/include/llvm/Type.h @@ -228,8 +228,12 @@ public: #include "llvm/Type.def" private: - class TypeIterator : public std::bidirectional_iterator { + class TypeIterator +#if __GNUC__ == 3 + : public std::iterator { +#else + : public std::bidirectional_iterator { +#endif const Type * const Ty; unsigned Idx; -- cgit v1.2.3