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 | 286677e45f1d13d01c634d9e2a4a3fa42bc6709b (patch) | |
| tree | 1ca81a46472df1b100b5fbba3c8e5c9615068482 /qpid/cpp/src | |
| parent | 4bf1bf9a7195da45b94aa3d7972557bbb64d4a11 (diff) | |
| download | qpid-python-286677e45f1d13d01c634d9e2a4a3fa42bc6709b.tar.gz | |
Added check to exclude old gcc compilers for atomic ops.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@658849 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
| -rw-r--r-- | qpid/cpp/src/qpid/sys/AtomicValue.h | 2 | ||||
| -rw-r--r-- | qpid/cpp/src/qpid/sys/AtomicValue_gcc.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/src/qpid/sys/AtomicValue.h b/qpid/cpp/src/qpid/sys/AtomicValue.h index 426e6a8f49..6e90eafead 100644 --- a/qpid/cpp/src/qpid/sys/AtomicValue.h +++ b/qpid/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/qpid/cpp/src/qpid/sys/AtomicValue_gcc.h b/qpid/cpp/src/qpid/sys/AtomicValue_gcc.h index 164c19d88e..da60edad65 100644 --- a/qpid/cpp/src/qpid/sys/AtomicValue_gcc.h +++ b/qpid/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 |
