]> git.mxchange.org Git - simgear.git/blobdiff - simgear/structure/SGAtomic.hxx
Minor compiler version detection issue.
[simgear.git] / simgear / structure / SGAtomic.hxx
index d4611d11c078c0e8c5ef3cbb6332d68047d7ffad..081a4906cd8c1c4990bcea1707e484e6479a05f6 100644 (file)
@@ -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