From: Jakub Wieczorek Date: Sun, 26 Feb 2012 14:10:42 +0000 (+0100) Subject: Fix the build on Mac OS X, where features.h is non-existent X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/1d6628c0887c49a053f8a3fd407c2b53e8984b23 Fix the build on Mac OS X, where features.h is non-existent --- 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