From: Owen Anderson Date: Fri, 15 May 2009 05:13:57 +0000 (+0000) Subject: Don't #include OSAtomic.h unless we really need it. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=8060424c40bcb7eeba21d5e365a880ae5e684dfd;p=oota-llvm.git Don't #include OSAtomic.h unless we really need it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71837 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/System/Atomic.h b/include/llvm/System/Atomic.h index c6d59531917..00179844e5b 100644 --- a/include/llvm/System/Atomic.h +++ b/include/llvm/System/Atomic.h @@ -17,8 +17,10 @@ #include "llvm/Config/config.h" #include -#ifdef __APPLE__ +#if defined(__APPLE__) +#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ == 0) #include +#endif #elif LLVM_ON_WIN32 #include #endif