]> rtime.felk.cvut.cz Git - sojka/libev.git/commitdiff
*** empty log message ***
authorMarc Alexander Lehmann <libev@schmorp.de>
Sat, 4 Feb 2012 15:17:34 +0000 (15:17 +0000)
committerMarc Alexander Lehmann <libev@schmorp.de>
Sat, 4 Feb 2012 15:17:34 +0000 (15:17 +0000)
ev.c

diff --git a/ev.c b/ev.c
index ca45a13311461c06e753965aade84018e5ba4158..c44327b3a2546e26087cb48420c24afa4210e568 100644 (file)
--- a/ev.c
+++ b/ev.c
@@ -541,7 +541,7 @@ struct signalfd_siginfo
 #endif
 
 #ifndef ECB_MEMORY_FENCE
-  #if ECB_GCC_VERSION(2,5) || defined(__INTEL_COMPILER) || defined(__clang__) || __SUNPRO_C >= 0x5110 || __SUNPRO_CC >= 0x5110
+  #if ECB_GCC_VERSION(2,5) || defined(__INTEL_COMPILER) || (__llvm__ && __GNUC__) || __SUNPRO_C >= 0x5110 || __SUNPRO_CC >= 0x5110
     #if __i386 || __i386__
       #define ECB_MEMORY_FENCE         __asm__ __volatile__ ("lock; orb $0, -1(%%esp)" : : : "memory")
       #define ECB_MEMORY_FENCE_ACQUIRE ECB_MEMORY_FENCE /* non-lock xchg might be enough */