From f3c131ffaf04d8e04595c1271f8a70c8a9d89f5f Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Fri, 27 May 2011 22:30:18 +0200 Subject: [PATCH] Minor compiler version detection issue. Well, almost prepared for gcc 5.0 now ;-). --- simgear/structure/SGAtomic.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5