X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/ca2344f9916f048667304bfa1e476fc52d1bc15d..b162e6f133d66f7b051badfc6d4c163ad9f97fe5:/src/config.h diff --git a/src/config.h b/src/config.h index 323a3ddd..6a69364a 100644 --- a/src/config.h +++ b/src/config.h @@ -96,4 +96,12 @@ #error "Undefined or invalid BYTE_ORDER" #endif +#if (__i386 || __amd64) && __GNUC__ +#define GNUC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) +#if GNUC_VERSION >= 40100 +#define HAVE_ATOMIC +#endif +#endif + + #endif