X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/dbb27a0a90ca3800f5be1d8170e404b9e7b9bc44..d19015be12c98f329cdaab039b843c3bf8931916:/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