From: ThorstenB Date: Fri, 27 May 2011 20:30:18 +0000 (+0200) Subject: Minor compiler version detection issue. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f3c131ffaf04d8e04595c1271f8a70c8a9d89f5f;p=simgear.git Minor compiler version detection issue. Well, almost prepared for gcc 5.0 now ;-). --- diff --git a/simgear/structure/SGAtomic.hxx b/simgear/structure/SGAtomic.hxx index d4611d11..081a4906 100644 --- a/simgear/structure/SGAtomic.hxx +++ b/simgear/structure/SGAtomic.hxx @@ -21,7 +21,7 @@ #ifndef SGAtomic_HXX #define SGAtomic_HXX -#if defined(__GNUC__) && (4 <= __GNUC__) && (1 <= __GNUC_MINOR__) \ +#if defined(__GNUC__) && ((4 < __GNUC__)||(4 == __GNUC__ && 1 <= __GNUC_MINOR__)) \ && (defined(__i386__) || defined(__x86_64__)) // No need to include something. Is a Compiler API ... # define SGATOMIC_USE_GCC4_BUILTINS