diff options
author | Jakub Wieczorek <fawek@fawek.net> | 2012-02-26 15:10:42 +0100 |
---|---|---|
committer | Jakub Wieczorek <fawek@fawek.net> | 2012-02-26 15:13:05 +0100 |
commit | 1d6628c0887c49a053f8a3fd407c2b53e8984b23 (patch) | |
tree | faf39a5886ae851cc88fae2955c2ce4d52bdc102 /src/config.h | |
parent | 80ff1fc6d0e3da53ae7bea0354216a38f7303971 (diff) | |
download | redis-1d6628c0887c49a053f8a3fd407c2b53e8984b23.tar.gz |
Fix the build on Mac OS X, where features.h is non-existent
Diffstat (limited to 'src/config.h')
-rw-r--r-- | src/config.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/config.h b/src/config.h index 2bf0f9340..6a69364a9 100644 --- a/src/config.h +++ b/src/config.h @@ -97,11 +97,10 @@ #endif #if (__i386 || __amd64) && __GNUC__ - #include <features.h> - - #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 |