Minor compiler version detection issue.

Well, almost prepared for gcc 5.0 now ;-).
This commit is contained in:
ThorstenB
2011-05-27 22:30:18 +02:00
parent b06e38699a
commit f3c131ffaf

View 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