Author: aconway
Date: Wed May 21 13:29:31 2008
New Revision: 658849

URL: http://svn.apache.org/viewvc?rev=658849&view=rev
Log:
Added check to exclude old gcc compilers for atomic ops.

Modified:
    incubator/qpid/trunk/qpid/cpp/src/qpid/sys/AtomicValue.h
    incubator/qpid/trunk/qpid/cpp/src/qpid/sys/AtomicValue_gcc.h

Modified: incubator/qpid/trunk/qpid/cpp/src/qpid/sys/AtomicValue.h
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/qpid/sys/AtomicValue.h?rev=658849&r1=658848&r2=658849&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/qpid/sys/AtomicValue.h (original)
+++ incubator/qpid/trunk/qpid/cpp/src/qpid/sys/AtomicValue.h Wed May 21 
13:29:31 2008
@@ -22,7 +22,7 @@
  *
  */
 
-#if defined( __GNUC__ ) && ( defined( __i686__ ) || defined( __x86_64__ ) )
+#if defined( __GNUC__ ) && __GNUC__ >= 4 && ( defined( __i686__ ) || defined( 
__x86_64__ ) )
 // Use the Gnu C built-in atomic operations if compiling with gcc on a 
suitable platform.
 #include "qpid/sys/AtomicValue_gcc.h"
 

Modified: incubator/qpid/trunk/qpid/cpp/src/qpid/sys/AtomicValue_gcc.h
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/qpid/sys/AtomicValue_gcc.h?rev=658849&r1=658848&r2=658849&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/qpid/sys/AtomicValue_gcc.h (original)
+++ incubator/qpid/trunk/qpid/cpp/src/qpid/sys/AtomicValue_gcc.h Wed May 21 
13:29:31 2008
@@ -22,7 +22,7 @@
  *
  */
 
-#if !defined(QPID_SYS_ATOMICVALUE_H) || !defined(__GNUC__)
+#if !defined(QPID_SYS_ATOMICVALUE_H)
 #error "This file should only be included via AtomicValue.h."
 #endif
 


Reply via email to