diff options
author | Alan Conway <aconway@apache.org> | 2008-05-21 20:29:31 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2008-05-21 20:29:31 +0000 |
commit | 28404c0026b5bed8ad4ad37d52cd4d3aab5c70bc (patch) | |
tree | 27e10d35451a742f6db3b7a88b803a8768dae0b9 /cpp/src | |
parent | 872d5283acf5839755e6c3194ceca5174aa198df (diff) | |
download | qpid-python-28404c0026b5bed8ad4ad37d52cd4d3aab5c70bc.tar.gz |
Added check to exclude old gcc compilers for atomic ops.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@658849 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/qpid/sys/AtomicValue.h | 2 | ||||
-rw-r--r-- | cpp/src/qpid/sys/AtomicValue_gcc.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/sys/AtomicValue.h b/cpp/src/qpid/sys/AtomicValue.h index 426e6a8f49..6e90eafead 100644 --- a/cpp/src/qpid/sys/AtomicValue.h +++ b/cpp/src/qpid/sys/AtomicValue.h @@ -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" diff --git a/cpp/src/qpid/sys/AtomicValue_gcc.h b/cpp/src/qpid/sys/AtomicValue_gcc.h index 164c19d88e..da60edad65 100644 --- a/cpp/src/qpid/sys/AtomicValue_gcc.h +++ b/cpp/src/qpid/sys/AtomicValue_gcc.h @@ -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 |