X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/59132e42125c43299c428e86f9107493e173883e..80ff1fc6d0e3da53ae7bea0354216a38f7303971:/src/config.h diff --git a/src/config.h b/src/config.h index 323a3ddd..2bf0f934 100644 --- a/src/config.h +++ b/src/config.h @@ -96,4 +96,13 @@ #error "Undefined or invalid BYTE_ORDER" #endif +#if (__i386 || __amd64) && __GNUC__ + #include + + #if __GNUC_PREREQ(4,1) + #define HAVE_ATOMIC + #endif +#endif + + #endif