From cd74271a790294198cdc101e3c08e5b063765220 Mon Sep 17 00:00:00 2001 From: John Criswell Date: Thu, 28 Oct 2004 17:31:46 +0000 Subject: [PATCH] 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17321 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/MallocAllocator.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/llvm/Support/MallocAllocator.h b/include/llvm/Support/MallocAllocator.h index c17517e2a0c..18ec611e1f7 100644 --- a/include/llvm/Support/MallocAllocator.h +++ b/include/llvm/Support/MallocAllocator.h @@ -72,6 +72,7 @@ inline bool operator!=(const MallocAllocator&, const MallocAllocator&) { } } // End llvm namespace +#if defined(__linux__) && !(defined (sparc) || defined (_sparc)) namespace std { template struct _Alloc_traits > { @@ -81,5 +82,6 @@ namespace std { typedef ::llvm::MallocAllocator allocator_type; }; } +#endif #endif -- 2.34.1