Only add the _Alloc_traits specialization in if we're compiling for

Linux and not compiling for Sparc.
This is still probably not correct, or portable, but it'll do for now.

llvm-svn: 17321
This commit is contained in:
John Criswell 2004-10-28 17:31:46 +00:00
parent 4b04c85125
commit 158737a76c
1 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,7 @@ inline bool operator!=(const MallocAllocator<T>&, const MallocAllocator<T>&) {
}
} // End llvm namespace
#if defined(__linux__) && !(defined (sparc) || defined (_sparc))
namespace std {
template<typename Type, typename Type2>
struct _Alloc_traits<Type, ::llvm::MallocAllocator<Type2> > {
@ -81,5 +82,6 @@ namespace std {
typedef ::llvm::MallocAllocator<Type> allocator_type;
};
}
#endif
#endif