From: Salvatore Sanfilippo Date: Sun, 26 Feb 2012 15:18:43 +0000 (-0800) Subject: Merge pull request #362 from fawek/mac-build-fix X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/64ef44d56835d068592e10eb588a8daad2168a08?hp=80ff1fc6d0e3da53ae7bea0354216a38f7303971 Merge pull request #362 from fawek/mac-build-fix 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