X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/80ff1fc6d0e3da53ae7bea0354216a38f7303971..eeb34eff52eb77ff387ea7b316b157aa4337bb7f:/src/config.h diff --git a/src/config.h b/src/config.h index 2bf0f934..6a69364a 100644 --- a/src/config.h +++ b/src/config.h @@ -97,11 +97,10 @@ #endif #if (__i386 || __amd64) && __GNUC__ - #include - - #if __GNUC_PREREQ(4,1) - #define HAVE_ATOMIC - #endif +#define GNUC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) +#if GNUC_VERSION >= 40100 +#define HAVE_ATOMIC +#endif #endif