X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/467d703eadd1578f93544bb5a7b6e40685a3b8ac..321a724da54480dec86d263eec3028723e3b0ab9:/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