From 28404c0026b5bed8ad4ad37d52cd4d3aab5c70bc Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Wed, 21 May 2008 20:29:31 +0000 Subject: 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 --- cpp/src/qpid/sys/AtomicValue.h | 2 +- cpp/src/qpid/sys/AtomicValue_gcc.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/src/qpid/sys') 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 -- cgit v1.2.1